フォルダにいくつかの画像があります。写真の名前をデータベースのテーブルに保存しました。今度は、次のようにテーブルから選択して写真を表示したいと思います。
$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'].'' />";
}
しかし、これには問題があるようです: '.$d['afisare_angajat'].' ..写真の名前を入れると表示されますが、このままにしておくと何も表示されません..