lundi 19 février 2018

PHP database file upload stopped worknig, why?

I have a database and I put files into that database, somehow I changed something and the file is no longer uploaded to my uploads folder, what went wrong?

Transfer file to uploads folder

$file = $_FILES['file']['name'];
    $file_loc = $_FILES['file']['tmp_name'];
    $folder="uploads/";

while($row = mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['file'] . "</td>";?>
<td><a href="uploads/<?php echo $row['file'] ?>">
<img style="height:100px" src="uploads/<?php echo $row['file'] ?>" ></a></td>



Aucun commentaire:

Enregistrer un commentaire