Jump to content

Not updating mysql :/


ChrisMartino

Recommended Posts

Ok so i have the code here were if the validation code in the database match's the one in the url it changes a number in the mysql but it doesn't?

 

This is the code were i change the number in the MySQL:

 

            	$URL = $_GET['account'];
                $URLVALIDATE = $_GET['validate'];
              if($URL == "confirm")
              {
              		$Stats = 1;
              		$UpdateUser = mysql_query("UPDATE `chrismar_xhost`.`Clients` SET `Status` = \'1\' WHERE `Clients`.`Validation` = '".$URLVALIDATE."'");
                    
                    if($UpdateUser)
                    {
                    	echo"<p>You're email address has been validated.</p>";
                    }
                    else
                    {
                    	echo"<p>There was a problem with the validation code.</p>";
                    }
              }

 

 

It just echo's there was a problem with the validation code? :( can anyone help?!? :[

Link to comment
https://forums.phpfreaks.com/topic/198331-not-updating-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.