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? Quote 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? Quote Link to comment https://forums.phpfreaks.com/topic/237185-mysql-problem-help/#findComment-1218956 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.