I have some images in a folder. I've stored names of the pictures in a table in a database. Now I want to display the pictures by making a select from the table like this:
$a=$_GET['nume'];
$c= "select * from angajati where afisare_angajat='".$a."'" ;
$b = mysql_query($c);
while($d = mysql_fetch_array($b)){
echo "<img src='/wp-content/themes/veles/images/angajati/'.$d['afisare_angajat'].'' />";
}
But there seems to be a problem with this: '.$d['afisare_angajat'].' ..if I put the name of the picture it shows but if I left it like this nothing shows up..