Hi all!
i want to delete a record from an sql table colum, when it contains something - for example:
im making an updater for a site - so content can easily be updated. The problem is i want to make the data eaaily removeable by the owner, not me, of the site.
I thought of doing it by three methods,
1: delete by post number - this is easy enough - but how will the user know which post they are deleting?
2:by who its by... but thats not good beucase theyll just remove all posts.
3:by post contains. - i thought this was the best, as they can just type a scentence or so of what it contained, and then press delete. But the problem is i cant formulate a query for this!!
because i cant use what i can for the others::
"DELETE FROM updates WHERE comments = '$contains'";
Instead of th '=' i need to say, where comments contains $string... is there any way of doing this?
and also - can anybody help me to find a better method of deleting posts?
Btw, dont conjure up any too complex codes as im not perfect at php yet... thanks.