şimdi js kodlarının içinde şöyle bir bölüm var.
var photoArray = new Array(
new Array("IMG_0470.jpg", "600", "450", "Cycling from Telluride to Moab"),
new Array("IMG_2441.jpg", "582", "350", "Mt. Toll as seen from the slopes of Mt. Audubon"),
new Array("IMG_2449.jpg", "600", "300", "Taking flight from the summit of Paiute"),
new Array("IMG_0677.jpg", "650", "488", "Plodding up Queen's Way Couloir on Apache"),
new Array("P3220073.jpg", "600", "400", "A storm brews in the distance (Red Rocks, NV)")
);burda resimleri manuel olarak çekiyor ben o resimlerin olduğu alanı dinamik hale getirmek için js dosyasını php olarak kaydettim ve o kısmı şu hale getirdim;
<?php
include("../../../baglanti.php");
$resimSql = "SELECT * FROM resimler";
$resimSonuc = mysql_query($resimSql);
while($resimSatir = mysql_fetch_assoc($resimSonuc))
{
$resim = $resimSatir["resimAdi"];
?>
new Array("<?php echo $resim; ?>", "650", "488", "Resim için açıklama"),
<?php } ?>ancak sayfa burdaki php kodunu görünce ölüyor. bunu nasıl düzenleyebilirim