Problem with upload date.

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
Citizen99
Forum Commoner
Posts: 32
Joined: Wed Dec 24, 2003 6:52 am
Location: Where noone understand me...

Problem with upload date.

Post by Citizen99 »

I write form in php (im storing data using mysql) that can be use for upload files (give them names, author, describe them etc.) and I want to give option that someone can write date when someone can download that file from site. For example I upload the file today (5.01.2004) for my school class and want to make it downloadable after (13.01.2004) is that possible ?

And there are two options I upload and can`t see that file and second I can see file with description but I can`t download. I want to solve the second problem. Thx for any tips and answers and sory for my English :]
User avatar
xisle
Forum Contributor
Posts: 249
Joined: Wed Jun 25, 2003 1:53 pm

Post by xisle »

something like this maybe...

Code: Select all

<?PHP
if($downloaddate<=$today){
  print"avaliable for download:
  <a href=$filename>$description</a>";
}
else {
print"available".$downloaddate.":".$description;
}
?>
Citizen99
Forum Commoner
Posts: 32
Joined: Wed Dec 24, 2003 6:52 am
Location: Where noone understand me...

new problem

Post by Citizen99 »

:]
Post Reply