You are here: setting 'expiry date' « PHP « IT news, forums, messages
setting 'expiry date'

Posted by "Ross" on 10/21/68 11:26

I have a php/mysql database with articles. What I need is a php sctipt that
will compare the current day with the 'expiry date' entered by the user and
if the there is a difference then drop it from the database..

I retrieve the date (called time and format it like this...

$query= "SELECT DATE_FORMAT(time, '%d.%m.%Y') AS time, article, id FROM news
ORDER BY id DESC";


The expiry date is entered through a javascript widget and is in the format
dd/mm/yyyy.


thanks,


Ross

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация