Hmm... maybe there is something wrong with the database to understand what's happening i suggest you to always add enable mysql error show up by adding " or die(mysql_error())" to your mysql query.. so your code should be:
PHP Code:
$trafficUp = $trafficResult['in']+1; $trafficId = $trafficResult['Id']; mysql_query("UPDATE trafficEx SET in = '$trafficUp' WHERE id = '$trafficId'") or die(mysql_error());
Now it should tell you what's wrong... keep us updated! 
Last edited by webmastertalker; 10-20-2010 at 05:45 AM..
|