Добрый день, подскажите почему перебирает только один ключ.
while($station_row = $adb->fetch_array($sql)) {
$station = $station_row['kod'];
$info = '';
while($stations_row = $adb->fetch_array($sql)) {
$stations = $stations_row['kod'];
$info .= "$station : $stations <br />";
}
echo $info;
}
Выводит
888004 : 35508
888004 : 254905
888004 : 510806
А нужно
888004 : 35508
888004 : 254905
888004 : 510806
35508 : 888004
35508 : 254905
35508 : 510806
и так далее... в чем проблема?