Jump to content

How to auto delete table row?


just me and php

Recommended Posts

Hi

Im Not Real Good At Explaining What I Want So Please Bare With Me.

 

I Have A Page On My Site That The Database Outputs To.

There Is A User That I Dont Want To Ban Yet , But I Do Want To Block Or auto Delete His Data.

Now When Everyone Post New Data The Only Table That Would identify Them Is The Username Table, There Is No Member ID Table.

Now I Would Like To querry The Database And Auto Delete Table (Username) BOBBY And The Row BOBBY Posted , So There Is No Data Output To My Site Page For BOBBY.

 

Can Someone Give Me A Couple Codes To Try, And I Would Think The Code Would Need To Be On A New Page That I Need To Make Up Right?

 

Thanks

Link to comment
Share on other sites

your explanation is very bad but ill try this

SELECT * FROM YOURTABLE WHERE FIELDS NOT IN('BOB','ASTIG')

That retuns data without bob and astig

 

now on your auto delete or ban!!!! i should say use another field for that

that will be set as active and non active

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.