Fwd: Re: [PHP-DB] mysql_num_rows, resource id #

2008-03-27 Thread Richard Dunne
This much is working: The output is 1 1 which is correct. One small step at a time, hopefully forward. Richard. --- Begin Message --- Richard Dunne wrote: In my code below, I am trying to verify that the query is selecting data from both rows of my answers table. I ha

Re: [PHP-DB] mysql_num_rows, resource id #

2008-03-27 Thread Evert Lammerts
Richard Dunne wrote: In my code below, I am trying to verify that the query is selecting data from both rows of my answers table. I have run the query on my MySQL CLI and getting answers from both rows, but running this script I get $rows = 0. I can't figure out why its not returning 2 for the n

[PHP-DB] mysql_num_rows, resource id #

2008-03-27 Thread Richard Dunne
In my code below, I am trying to verify that the query is selecting data from both rows of my answers table. I have run the query on my MySQL CLI and getting answers from both rows, but running this script I get $rows = 0. I can't figure out why its not returning 2 for the number of rows. It