Hi all,
I have a html form that allows a user to upload a file to the server.
For each file that is uploaded, how do I store relevant information such as date uploaded, name, etc. in a database table?
Here's my code so far:
$query = "INSERT INTO tbl values('".$fileName."', NOW())";
$result = mysql_query($query) or die(mysql_error());
And how will I get the info in the database to link to its relevant file on the server?
Basically, how can I select and display a file based on the database data?
thanks,
Kevin.