Hi,
i'm trying the following form the mysql prompt:
update user_info set user_password = 'caY1EjjVo' where user_id = 'steve' and user_email ='steve@mail.com'
it returns:
Query OK, 0 rows affected (0.12 sec)
Rows matched: 1 Changed: 0 Warnings: 0
however, password is changed in the database.
//now to php.
this query is setup in the php script. i check the database and the password has been changed.
how do i check if the password has been set / query successful?
i tried:
if($result)
if(mysql_affected_rows($result))
if(mysql_num_rows($result))
none seem to provide me with the functionality of checking query success.
what am i doing wrong?
thanks
steve