I'm trying to update the database when I get a postback from my affiliate company. Here's the script I'm using:
	
	
	
		
I keep getting "Error, query failed", but I'm too tired - and apparently too stupid - to figure out why.
Help.
	
		
			
		
		
	
				
			
		Code:
	
	<?php
include("db.php");
$email = $_GET['email'];
$query = "UPDATE `table_name`.`info` SET `incentive` = \'1\', WHERE `info`.`email` = '.$email.';";
mysql_query($query) or die('Error, query failed');
mysql_close($database);
?>
	I keep getting "Error, query failed", but I'm too tired - and apparently too stupid - to figure out why.
Help.