Error - Invalid argument supplied for foreach()
Scris: Lun Mar 09, 2015
Primesc eroarea:
Linia este
Multumesc.
Cod: Selectaţi tot
Warning: Invalid argument supplied for foreach() in /home/a5171763/public_html/best-investments-imob/functii.php on line 82
Cod: Selectaţi tot
function selectare_poze($id) {
global $db_conx;
$afisare = '';
$poza = "poze_anunturi/$id/";
$images = glob($poza."*.jpg");
foreach($images as $image) {
$afisare .= '<div>
<img u="image" src="'.$image.'" />
<img u="thumb" src="'.$image.'" />
</div>';
}
return $afisare;
}