I am running a script where i use php to get a users email address that they entered in the previous page.
I then query my database for any mentions of that email address and try to update them to "Removed"
-----
However, when i run the code, the database doesn't get updated at all, and i get this error.
Any ideas? Thanks
I then query my database for any mentions of that email address and try to update them to "Removed"
-----
Code:
$query = "SELECT * from hmr";
$result = mysql_query($query);
$result=mysql_query($query);
while (list($id, $posterEmail) =
mysql_fetch_row($result)) {
$result = mysql_query("UPDATE hmr SET posterEmail='Removed' WHERE posterEmail= $email ") ;
However, when i run the code, the database doesn't get updated at all, and i get this error.
Any ideas? Thanks
Code:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home1/ihatemyr/public_html/notifications/remove.php on line 1