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 :]
Problem with upload date.
Moderator: General Moderators
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
:]