View Single Post
Old 02-05-2008, 07:23 PM   #6 (permalink)
buggabill
The Contributor
 
buggabill's Avatar
 
Join Date: Jan 2008
Location: Maine, USA
Posts: 92
Thanks: 2
buggabill is on a distinguished road
Default

I personally use double quotes and they seem to work for me. One thing that looks a bit weird is the table name. Is that correct?

SQL Code:
$query = 'UPDATE althlete SET
compare
SQL Code:
$query = 'UPDATE athlete SET

One more thing, you have an extra comma before the WHERE clause.

PHP Code:
   place "'.mysql_real_escape_string($place).'",
   
WHERE athlete_number $ud_athletenumber'; 
should be:
PHP Code:
   place "'.mysql_real_escape_string($place).'"
   
WHERE athlete_number $ud_athletenumber'; 
That would cause some issues.
__________________
-- Bill
"Why is it drug addicts and computer aficionados are both called users?" -Clifford Stoll
buggabill is offline  
Reply With Quote
The Following User Says Thank You to buggabill For This Useful Post:
StevenF (02-05-2008)