I am trying to delete a row in the mysql database where the username and name_site have to be correct.
current code:
This results into a nice syntax error.PHP Code:include "inc.mysql_connect.php";
$query = "DELETE FROM 'personal_bookmarks' WHERE username='" . $_SESSION['username'] . "' AND name_site='" . $_POST['name_remove_site'] . "'";
$result = mysql_query($result) or die(mysql_error());
Could anyone tell me what i did wrong?


Reply With Quote

Bookmarks