Page 1 of 1

Database with Codes

Posted: Thu Dec 01, 2011 12:46 pm
by ebgames56
Is there anyway to have my database automatically delete the code in the database after it is put into the text box?

Re: Database with Codes

Posted: Thu Dec 01, 2011 1:00 pm
by Celauran
Use a DELETE query on that record after the form has been submitted.

Code: Select all

$query = "DELETE FROM tablename WHERE code = '{$code_to_delete}'";