[Solved] Delete not working properly as wanted |
I have a column called code which stores a unique id when user previews a post.
If code is empty it should not remove the row. But for some reason deletes rows the code column is empty as well. How can I make sure it only removes rows if code is present and has been there for more than 15min PHP Code: public function clear_unconfirmed_post() { I have tried PHP Code: public function clear_unconfirmed_post() {
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
(02-09-2017, 11:43 PM)Wouter60 Wrote: Did you try This has worked now using a foreach loop PHP Code: public function clear_unconfirmed_post() {
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Welcome Guest, Not a member yet? Register Sign In |