Jump to content
Larry Ullman's Book Forums

Recommended Posts

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

 Share

×
×
  • Create New...