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

Reply via email to