I am trying to update a record in MySQL DB but nothing is being changed.
Here is the line I am using to try to get the record updated.
$sql = "UPDATE ".$this->Tbl." SET name = '".$data['name']."', title = '".$data['title']."', message = '".$data['message']."', ', picture = '".$filename_update.".jpg' WHERE id = '".$data['id']."'";
echo $sql;
$db->connect();
$result = mysql_query($sql);
$db->disconnect();
return $result;
There are no errors being reported. In fact I am getting confirmation that all the information is correct in the update line.
I noticed that right before your
picturecolumn, you have an extra',. Perhaps this is causing the issue?