Re: [PHP] supplied argument errors

2009-06-24 Thread David Robley
PJ wrote: > Lex Braun wrote: >> >> >> On Tue, Jun 23, 2009 at 4:10 PM, PJ > > wrote: >> >> I think there is something I do not understand in the manual about >> mysql_fetch_assoc(), mysql_affected_rows() >> The code works, but I get these annoying messag

Re: [PHP] supplied argument errors

2009-06-23 Thread Shawn McKenzie
kranthi wrote: > the code works? > > the above warnings suggest that ter is a mysql syntax error. > > moreover the documentation of mysql_affected_rows suggests that u should > supply a valid recource identifier but not a mysql result resource. > i.e., the above should be mysql_affected_rows($db)

Re: [PHP] supplied argument errors

2009-06-23 Thread kranthi
the code works? the above warnings suggest that ter is a mysql syntax error. moreover the documentation of mysql_affected_rows suggests that u should supply a valid recource identifier but not a mysql result resource. i.e., the above should be mysql_affected_rows($db)

Re: [PHP] supplied argument errors

2009-06-23 Thread Lex Braun
On Tue, Jun 23, 2009 at 4:10 PM, PJ wrote: > I think there is something I do not understand in the manual about > mysql_fetch_assoc(), mysql_affected_rows() > The code works, but I get these annoying messages. > snippet: > What are the warnings?

Re: [PHP] supplied argument errors

2009-06-23 Thread PJ
Lex Braun wrote: > > > On Tue, Jun 23, 2009 at 4:10 PM, PJ > wrote: > > I think there is something I do not understand in the manual about > mysql_fetch_assoc(), mysql_affected_rows() > The code works, but I get these annoying messages. > snippet: >

[PHP] supplied argument errors

2009-06-23 Thread PJ
I think there is something I do not understand in the manual about mysql_fetch_assoc(), mysql_affected_rows() The code works, but I get these annoying messages. snippet: $result = mysql_query($sql, $db); // this is following an UPDATE $row = mysql_fetch_assoc($result); // warning...