Re: Row Count

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dan Shirah wrote:
Sorry about the top posting.  <slaps hand>

You my friend are a genious!  $rows = $rowcount['(count(*))'] works like a
charm!

Thank you all.


So in your query, add this

SELECT COUNT(*) as total FROM your_table

Then in your code use this instead

$rows = $rowcount['total'];

This makes a little more sense then using the count(*) thing, to me at least

--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux