Question
DELETE RECORD NOT WORKING
I posted this under the General Forum, but noticed that other
Delete Record questions going back to 2006 have zero responses.
This must be a hard one. Can anyone help?
Page 1: form to enter a Style No. This is the recordset filter to a Master page.
Page 2: deletesize1.php - Master page has a repeating region with a Go To Detail server behaviour. It passes the URL: ID (primary key) to the detail page. (basic Master/Detail page stuff)
Page 3: deletesize2.php - the Detail page shows ONE record (the size/color combination that needs to be deleted). There is link on this page (text: Confirm Delete) that passes the URL to the Delete Page.
Page 4: deletesize3.php - The Delete Page. Everything works beautifully until you get to the Delete Page. I get an error message says: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' " WHERE ID=4642' at line 1.
4642 IS THE CORRECT ID. But the WHERE statement is NOT at Line 1.
What does this error mean and why is the above not working? It appears to be BY THE BOOK.
I created a link to the code: go to www.thescrubsite.com and you will see a link called "MURRAY" in the footer.
Anyone up to the task?
Evie
Page 1: form to enter a Style No. This is the recordset filter to a Master page.
Page 2: deletesize1.php - Master page has a repeating region with a Go To Detail server behaviour. It passes the URL: ID (primary key) to the detail page. (basic Master/Detail page stuff)
Page 3: deletesize2.php - the Detail page shows ONE record (the size/color combination that needs to be deleted). There is link on this page (text: Confirm Delete) that passes the URL to the Delete Page.
Page 4: deletesize3.php - The Delete Page. Everything works beautifully until you get to the Delete Page. I get an error message says: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' " WHERE ID=4642' at line 1.
4642 IS THE CORRECT ID. But the WHERE statement is NOT at Line 1.
What does this error mean and why is the above not working? It appears to be BY THE BOOK.
I created a link to the code: go to www.thescrubsite.com and you will see a link called "MURRAY" in the footer.
Anyone up to the task?
Evie
