Jump to content

[SOLVED] Why can't I delete this database entry?


vomitbomb

Recommended Posts

For some reason I can print out these values, but I can't delete them, do I have the DELETE syntax wrong or something?

 

I am using basically the same code on another page using SELECT instead of DELETE and that works.

 

$search = $_GET['search'];
$searchl = $_GET['searchl'];

echo $search;
echo $searchl;

echo "<h3>Deleting order name: $search $searchl</h3><br>";

//create a query

$sql = "DELETE * FROM orders WHERE lname LIKE '$search' AND fname LIKE '$searchl'";
$result = mysql_query($sql, $conn);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.