Skip to content
Advertisement

PHP MySql delete query

I have a delete script on my dashboard that WAS working before moving domains.

( not sure if that is relevant )

The code for my ‘deletejob.php’ is below.

JavaScript

The script functions as if it is working and even gives me the alert
( ID has been successfully deleted. )

Does anyone have any idea as to why this script would return a false positive?

Advertisement

Answer

You must find the row you want to delete, using SELECT statement, like this:

JavaScript

Also You have to have the following sent when you click the delete button or it will not delete at all:

JavaScript

After the above:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement