PDA

View Full Version : Having trouble using sql DELETE


d1jsp
09-13-2013, 06:23 PM
I'm trying to write SQL to delete records, but the records never get deleted. Am I using the wrong $db function?

Here is a sample of my code:

$db->query_write("
DELETE FROM keyclassic16
WHERE thekey='".mysql_real_escape_string($_GET['key'])."'");


Anyone have any ideas? I verified the query string variable does use a value that exists in the table.

Thanks in advance.

--------------- Added 1379102813 at 1379102813 ---------------

I figured out my own problem. Thanks.