I am using an update query to change information in a database. Does anyone see anything wrong wit this code. Its not erroring out, just won't work update the data.
$connection = db_connect();
$query = "UPDATE image_table SET
imageID = '$imageID',
imagePath = '$imagePath',
category = '$category',
jobTitle = '$jobTitle',
startDate = '$startDate',
finishDate = '$finishDate',
jobDetails = '$jobDetails',
actStat = '$actStat',
WHERE imageID = '$imageID'";
$result = mysql_query($query, $connection);
if ($result)
{
echo "your item has been changed";
} else {
echo "could not make your change";
}
Thanks for your time