Parašė bdZ reborn· 2008 Rugp. 15 13:08:14
#3
$result = dbquery("SELECT * FROM ".$db_prefix."robotukas WHERE status='1'");
while ($bot = dbarray($result)) {
$kla = $bot['pakeistas_klausimas'];
$ats = $bot['atsakymas'];
$tekstas[$kla] = $ats;
}
turetu suveikt...
ir bus panasus i sita nesamone:
$tekstas = array (
"yabadabadu" => "paasd",
"yabadzxczxcabadu" => "asdl",
"645645" => "asdasd"
);