RE: Checking for good update

2006-03-13 Thread fbsd_user
, but will post that as separate question. Again thanks for your expert help. -Original Message- From: Michael Stassen [mailto:[EMAIL PROTECTED] Sent: Monday, March 13, 2006 4:18 AM To: [EMAIL PROTECTED] Cc: mysql@lists.mysql.com Subject: Re: Checking for good update [EMAIL PROTECTED

Re: Checking for good update

2006-03-13 Thread mysql
Stassen wrote: > To: [EMAIL PROTECTED] > From: Michael Stassen <[EMAIL PROTECTED]> > Subject: Re: Checking for good update > > [EMAIL PROTECTED] wrote: > > On Sun, 12 Mar 2006, Michael Stassen wrote: > > > > > > [EMAIL PROTECTED] wr

Re: Checking for good update

2006-03-13 Thread Michael Stassen
[EMAIL PROTECTED] wrote: On Sun, 12 Mar 2006, Michael Stassen wrote: [EMAIL PROTECTED] wrote: looks a bit strange to me. $result = mysql_query($query) or die('Query couldn\'t executed:'.mysql_error()); please try something like this: Why? There's nothing wrong with the above statement.

Re: Checking for good update

2006-03-13 Thread mysql
On Sun, 12 Mar 2006, Michael Stassen wrote: > To: [EMAIL PROTECTED] > From: Michael Stassen <[EMAIL PROTECTED]> > Subject: Re: Checking for good update > > [EMAIL PROTECTED] wrote: > > looks a bit strange to me. > > > > > $result = mysql_query($que

Re: Checking for good update

2006-03-12 Thread Michael Stassen
[EMAIL PROTECTED] wrote: looks a bit strange to me. $result = mysql_query($query) or die('Query couldn\'t executed:'.mysql_error()); please try something like this: Why? There's nothing wrong with the above statement. // build the query - (that's OK) $query = "UPDATE members SET email_ve

Re: Checking for good update

2006-03-12 Thread Michael Stassen
fbsd_user wrote: > Using this code I get this error message. > > Warning: mysql_num_rows(): supplied argument is not a valid MySQL > result resource in /usr/local/www/data/mls_verifyemail.php on line 49 > > What code should I use to check if the update worked or not? Your second line does just th

RE: Checking for good update

2006-03-12 Thread fbsd_user
esult condition test? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, March 12, 2006 5:20 PM To: mysql@lists.mysql.com Subject: Re: Checking for good update Maybe I need to read the copy of php pocket reference I have to David - LOL. Keith On Sun, 12 Mar

Re: Checking for good update

2006-03-12 Thread mysql
Maybe I need to read the copy of php pocket reference I have to David - LOL. Keith On Sun, 12 Mar 2006 [EMAIL PROTECTED] wrote: > To: mysql@lists.mysql.com > From: [EMAIL PROTECTED] > Subject: Re: Checking for good update > > > looks a bit strange to me. > > > $

Re: Checking for good update

2006-03-12 Thread mysql
Regards Keith In theory, theory and practice are the same; In practice they are not. On Sun, 12 Mar 2006, fbsd_user wrote: > To: Mysql > From: fbsd_user <[EMAIL PROTECTED]> > Subject: Checking for good update > > Using this code I get this error message. > > Warning:

RE: Checking for good update

2006-03-12 Thread fbsd_user
:50 PM To: [EMAIL PROTECTED]; Mysql Subject: RE: Checking for good update Perhaps reading the manual would be a good start at http://us3.php.net/manual/en/function.mysql-num-rows.php It clearly states Retrieves the number of rows from a result set. This command is only valid for SELECT statements

RE: Checking for good update

2006-03-12 Thread Logan, David (SST - Adelaide)
2006 8:00 AM To: Mysql Subject: Checking for good update Using this code I get this error message. Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/www/data/mls_verifyemail.php on line 49 What code should I use to check if the update worked or not

Checking for good update

2006-03-12 Thread fbsd_user
Using this code I get this error message. Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/www/data/mls_verifyemail.php on line 49 What code should I use to check if the update worked or not? $query = "UPDATE members SET email_verified='X' WHERE lo