Re: [PHP-DB] How do I test on number of fields ?

2001-03-20 Thread Jason Stechschulte
On Mon, Mar 19, 2001 at 10:06:52PM -0800, Toke Herkild wrote: > I've written this login rutine > > But that doesn't work... I've tried to use mysql_num_rows too but I still > get : > Warning: Supplied argument is not a valid MySQL result resource in > g://web/herkild/html/loginout.php on line 11

Re: [PHP-DB] How do I test on number of fields ?

2001-03-19 Thread Terry Romine
check where you are getting "$mysql_link" that is the problem I usually associate with the error you report. if $mysql_link is undefined, MySQL can't perform the query. Terry On Tuesday, March 20, 2001, at 12:06 AM, Toke Herkild wrote: > > $mysql_result = mysql_query($query, $mysql_l

[PHP-DB] How do I test on number of fields ?

2001-03-19 Thread Toke Herkild
I've written this login rutine But that doesn't work... I've tried to use mysql_num_rows too but I still get : Warning: Supplied argument is not a valid MySQL result resource in g://web/herkild/html/loginout.php on line 113 if ($ACTION == 'Login') { $query = "SELECT user.ID FROM user WHER