mySQL question

Derek Atkins warlord at MIT.EDU
Wed Dec 4 16:09:21 EST 2002


Perhaps '$result' contains an error (because mysql_query() returned
an error)?  Can you run this query by hand against your MySQL DB on
Linux?

-derek

"Mike Volmar" <mvolmar at fruitlands.org> writes:

>   mysql_select_db("events");
>   $query = "select * from events";
>   $result = mysql_query($query);
> 
>   $num_results = mysql_num_rows($result);  // this line throws error

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available



More information about the Discuss mailing list