Jump to content

Recommended Posts

ok i am going straight to the point.

 

i have a db that stores a date in a table with a specific column.

db=test

table=test_date_compare

column name=date_inserted

 

ok i hv a php form that allows user to input date and it enters in the above column (date) as in format eg: 21/03/2007

 

now i wat i would like to do is i would like to compare date of today and the date in the database if it is lesser then todays date it deletes that row of data.

 

 

deleting the row of data i know how but the problem comes wen coparing the date i dunno how to ...

so can anyone assist me on this pls ...thank you very much.

Link to comment
https://forums.phpfreaks.com/topic/51807-date-compare-problemhelp-pls/
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.