I update the file:
// Update the Files table.
$query1 = “UPDATE uploads SET
file_name=’{$_FILES [$filename][‘name’]}’,
file_size={$_FILES[$filename][‘size’]},
file_type=’{$_FILES[$filename][‘type’]}’,
description=’$d’
WHERE upload_id=$uid”;
$result1 = mysql_query($query1);
// Report on the success.
if ($result1) {
// Move the file over.
if (move_uploaded_file($_FILES[$filename]['tmp_name'], "C:/tmp/uploads/$uid")) {
echo '<p><font color="red">The File has been edited!</font></p>';
} else { // File could not be moved.
echo '<p><font color="red">The File could not be edited.</font></p>';
// Remove the record from the database.
$query = "DELETE FROM uploads WHERE upload_id = $uid";
$result = mysql_query ($query);
// Add more detailed error reporting, if desired.
}
} else {
echo '<p><font color="red">Your submission could not be processed
due to a system error. We apologize for any
inconvenience.</font></p>'; // Print queries and use the mysql_error() function (after each mysql_error() call) to debug.
}
Now I want to display the file that has been updated.
How do i go about doing that?