JayJabber Posted May 23, 2011 Share Posted May 23, 2011 Well im using paypal IPN im trying to get it to update something out of my database. Heres the code I think this is all you need <?php include('config.php') ?> <?php function updatePayments($data){ global $link; if(is_array($data)){ $sql = mysql_query("INSERT INTO `serverb` WHERE name = 'Official' (gold) VALUES ('yes')"); } } ?> How do i get it to work? Link to comment https://forums.phpfreaks.com/topic/237185-mysql-problem-help/ Share on other sites More sharing options...
gizmola Posted May 23, 2011 Share Posted May 23, 2011 For starters have a SQL statement that's valid. You are passing $data in for some reason --- shouldn't you actually try and use it in your Insert query? Link to comment https://forums.phpfreaks.com/topic/237185-mysql-problem-help/#findComment-1218956 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.