Jump to content

If statement stopping page from working?


Recommended Posts

Hi all .

 

Im trying to have a query run if a post variable is set, I have the following code only its not working can anybody see something im missing?

 

	if(isset($_POST['r']) {
					$refcode = mysql_real_escape_string($_POST['r']);
					mysql_query(" UPDATE produgg_users SET credits=credits+200000 where produgg_users.id = ".$refcode) or die(mysql_error();


					};

Link to comment
https://forums.phpfreaks.com/topic/240824-if-statement-stopping-page-from-working/
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.