Hi,
I got error message "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Town Donation Draw";s:15:"Hou rs Completed";s:8: "3.000000";s:4: "Year";s:4:"200 9";' at line 1".
pls correct my mistake.
I got error message "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Town Donation Draw";s:15:"Hou rs Completed";s:8: "3.000000";s:4: "Year";s:4:"200 9";' at line 1".
pls correct my mistake.
Code:
$m = array(); foreach($students as $student){ if($student['nric'] =='S9221121E'){ $m = $student; } } print '<pre>'; $metamoe = serialize($m); print '</pre>'; mysql_query("UPDATE sgc SET meta_moe = '$metamoe' WHERE nric = 'S9221121E' AND name = 'ANG MEI KEE'")or die(mysql_error()); echo "Successfully";
Comment