Can anyone tell me why this code does not UPDATE my imagepath field. ( I have tested and tested this and it won't work, even though mysql_query() returns 1 and prints to a text file show the query text string is accurate)(imagepath is of type text)
function remove_image_by_update(){
$c = $this -> certificate_code;
$d= $this -> viewandedit_id;
$query = "UPDATE ac_details SET imagepath = '#' WHERE cert_code = '$c' AND un_id = '$d'";
$g = mysql_connect("glider.pxxg.com","je","pasword");
mysql_select_db("charter_db");
$result2 = mysql_query($query, $g);
mysql_close();