I have an edit script
which is producing an error
line 32 being the mysql_query line
any ideas what the problem is?
Code:
$ID = $_POST["id"];
$title = $_POST["title"];
$restaurant = $_POST["name"];
$desc = $_POST["desc"];
$author = $_POST["author"];
$pic1 = $_POST["pic1"];
$pic2 = $_POST["pic2"];
$editSQL = "UPDATE review SET ";
$editSQL .= "ReviewTitle = '" . addslashes($title) . "', ";
$editSQL .= "ReviewDesc = '" . addslashes($desc) . "', ";
$editSQL .= "RestaurantName = '" . addslashes($restaurant) . "', ";
$editSQL .= "CreatedBy = '" . addslashes($author) . "' ";
$editSQL .= "image1 = '" . $pic1 . "' ";
$editSQL .= "image2 = '" . $pic2 . "' ";
$editSQL .= "WHERE review = '" . $ID . "'";
$results = mysql_query($editSQL);
which is producing an error
Code:
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in C:\sites\newqfol\edit\alanreviews\edited.php on line 32
line 32 being the mysql_query line
any ideas what the problem is?