<?php
// ATSIMINKITE, ČIA TIK SUPAPRASTINTAS VARIANTAS!
// UŽKLAUSA
$query = mysql_query("SELECT SQL_CACHE * FROM `main_settings`");
// CIKLAS
while ($row = mysql_fetch_assoc($query)) {
$data[] = $row;
}
// FOREACH'AS
foreach ($data as $info) {
$settings[$info['settings_name']] = $info['settings_value'];
}
?>