MySQL Forums
Forum List  »  Newbie

Problem Updating
Posted by: Rob page
Date: June 15, 2005 03:41PM

I can't figure out for the life of me why this won't work... but I am such a newb, ots crazy.. any help would be awesome. Thanks ahead of time.

if ($display=="editproduct" && $submit_editprod){
$query1 = "UPDATE products SET prodname = '$prodname' WHERE prod_id = '$editid'";
$query2 = "UPDATE products SET proddesc = '$proddesc' WHERE prod_id = '$editid'";
$query3 = "UPDATE products SET prodsize = '$prodsize' WHERE prod_id = '$editid'";
$query4 = "UPDATE products SET prodprice = '$prodprice' WHERE prod_id = '$editid'";
$query5 = "UPDATE products SET prodcat = '$prodcat' WHERE prod_id = '$editid'";
mysql_query($query1);
mysql_query($query2);
mysql_query($query3);
mysql_query($query4);
mysql_query($query5);
echo "Your item was updated. <br><br> <a href='editnews.php'>Click here to edit more articles.</a>";
}

Options: ReplyQuote


Subject
Written By
Posted
Problem Updating
June 15, 2005 03:41PM
June 16, 2005 02:27AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.