grahamgr3 Posted March 14, 2014 Share Posted March 14, 2014 My question is why in the following mysql statement does the $id at the end, not have to be in single quotes, whereas other variables in this statement are in quotes. $u = "UPDATE customers SET first_name='$fn', last_name='$ln', email='$em', address='$add', zipcode='$zip', city='$city', state='$state', country='$coun' WHERE customer_id = $id"; Link to comment Share on other sites More sharing options...
HartleySan Posted March 14, 2014 Share Posted March 14, 2014 Strings need quotes, numbers don't. 1 Link to comment Share on other sites More sharing options...
Recommended Posts