Forum Moderators: coopster
$sql = "UPDATE ad SET adName='$adName', adInfo='$adInfo', adPrice='$adPrice' WHERE adID='21'";
$result = mysql_query($sql) or die("Couldn't modify database.");
mysql_close($connection);
This is the error I get: Couldn't modify database. Anyone knows what is happening and why I cannot update the database?
$result = mysql_query($sql) or die("Couldn't modify database.");
to this:
$result = mysql_query($sql);
And make sure error reporting is turned on - the error message should help you pinpoint the problem.