Urgent coding help
| From: | Slaven Vujic | Date: | Fri, 20 Oct 2000 06:24:10 +0000 |
| Subject: | Urgent coding help | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-21337@lists.php.net to get a copy of this message | ||
Hi,
I hope someone will offer a prompt solution in this.
I have a news managment on my site.
Table news:
id smallint (5) zerofill not null auto_increment,
title varchar(255),
text blob,
date varchar(10),
image varchar(12),
hour char(5),
autor_id char(3)
The news are submited almost always with current date and time, but user can specify some other time
or date for specific news to show up on webpage.
Date is submited in format: 20-10-2000
Hour is submited in format: 14:45
On webpage I get the hour and date in specific code and then I compare them with hours and dates
inserted in MySQL table.
If the user specify some future date or time, how can I make the PHP code to display that news
exactly on time that has been set manually by the user?
This is urgent, and I would appreciate any code or help.
Thanks in advance,
Slaven