Jump to content

[SOLVED] why doesnt my update work


thefollower

Recommended Posts

I have this update which doesn't seem to update my table but also produces no error either =/

 

This is what i got :

 

$Date = date("Y-m-d H:i:s",time());
$NewTotal = 100;
$UpdateMyTravel = "UPDATE countryusercoords SET HitchHike=HitchHike+$NewTotal AND StartedHitchHike='$Date' WHERE UserID= '{$_SESSION['Current_User']}'";
$travelresult = mysql_query($UpdateMyTravel) or die(mysql_error());

 

what did i do wrong?

Link to comment
https://forums.phpfreaks.com/topic/75398-solved-why-doesnt-my-update-work/
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.