Page 1 of 1

Problem with upload date.

Posted: Mon Jan 05, 2004 1:29 pm
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 :]

Posted: Mon Jan 05, 2004 1:52 pm
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;
}
?>

new problem

Posted: Tue Jan 06, 2004 1:17 pm
by Citizen99
:]