<h2>Imagini</h2>
<div class="table-responsive">
<table class="table table-hover table-dark">
<tbody>
<?php
$working_dir = getcwd();
//get image directory
$img_dir = $working_dir . "/upload/";
//change current directory to image directory
chdir($img_dir);
//using glob() function get images
$files = glob("*.{jpg,jpeg,png,gif,JPG,JPEG,PNG,GIF}", GLOB_BRACE );
//again change the directory to working directory
chdir($working_dir);
//iterate over image files
foreach ($files as $file) {
?>
</td><td><a href="<?php echo "upload/" . $file ?>" target="_blank"><img src="<?php echo "upload/" . $file ?>" style="height: 100px; width: 100px;"/></a></td></tr>
<?php }
?>
</tbody>
</table>
Deci toate pozele din folderul Upload vreau sa le puna in tabel la fiecare user in parte care adauga poze, am gasit scriptul de mai sus dar nu stiu cum il integra la scriptul care pune numele si adresa la useri
Sau daca se poate sa mi adauge alt rand in tabel cand se adauga imagini noi in folderul Upload