Yapmak istediğim şey aşağıdaki gibi bişi..
bi dostumun yardımıyla en altaki PHP kod sayesinde aynı bu şekilde çıktı alabiliyorum ama sadece birin çıktısını alabiliyorum.
yani aşağıdaki php kodu imageList için kullandığımda sorunsuz çalışıyor ama kodun bi kopyasını alıp bi altına yapıştırıp imageList olan yerleri idList diye değiştirdiğimde imageList ile idList in id numaraları aynı görünüyor bu işin içinden nasıl çıkacam

imageList[0] = "14612"; imageList[1] = "28515"; imageList[2] = "28513"; imageList[3] = "28508"; imageList[4] = "28506"; imageList[5] = "28504"; imageList[6] = "28502"; imageList[7] = "28500"; imageList[8] = "28498"; imageList[9] = "28496"; idList[0] = "12312"; idList[1] = "13387"; idList[2] = "13386"; idList[3] = "13384"; idList[4] = "13383"; idList[5] = "13382"; idList[6] = "13381"; idList[7] = "13380"; idList[8] = "13379"; idList[9] = "13378";
//-- imageList --//
<?php
include("config.php");
$sql = mysql_query("SELECT * FROM news WHERE news_location='1' ORDER BY id DESC limit 10");
unset($dizii);
while($row=mysql_fetch_array($sql)){
$dizi[] = $row['image'];
}
for($i=0 ; $i<count($dizi); $i++){
echo 'imageList['.$i.'] = "'. $dizi[$i]. '";';
}
?>
//-- idList --//
<?php
unset($dizii);
while($row=mysql_fetch_array($sql)){
$dizi[] = $row['id'];
}
for($i=0 ; $i<count($dizi); $i++){
echo 'idList['.$i.'] = "'. $dizi[$i]. '";';
}
?>------------------------------------------------------------
bide aceba aşağıdaki kodda 1-2-3.... diye artan sayılar bi döngü içerisinde nasıl otomotiğe bağlayabilirim ??
<div class=item><a id=headline_item_1 onmouseover="return CM_headlineMain.jumpTo(1);" href="https://www.r10.net/php/id" target=_parent>1</a></div>
<div class=item><a id=headline_item_2 onmouseover="return CM_headlineMain.jumpTo(2);" href="https://www.r10.net/php/id" target=_parent>2</a></div>
<div class=item><a id=headline_item_3 onmouseover="return CM_headlineMain.jumpTo(3);" href="https://www.r10.net/php/id" target=_parent>3</a></div>
<div class=item><a id=headline_item_4 onmouseover="return CM_headlineMain.jumpTo(4);" href="https://www.r10.net/php/id" target=_parent>4</a></div>
<div class=item><a id=headline_item_5 onmouseover="return CM_headlineMain.jumpTo(5);" href="https://www.r10.net/php/id" target=_parent>5</a></div>
İnşallah derdimi anlşatabilimişimdir