ok, for some reason, I'm unable to do a simple update on a MYSQL database. Here is the code....
$query = "UPDATE items SET name = '$name', description = '$description', photo = '$picname', catid = '$catid' WHERE id = '$id'";
if($result = mysql_query($query,$db)) {
..... DISPLAY REDIRECT HERE ...
} else {
echo "Error Updating Record!<br>$query";
}
when this is called, it's giving me an error. For the life of me, I can't figure this out? PLEASE help 🙂