Новини Львова
\');'; $mqst = mysql_query($stfn); $mnr = mysql_num_rows($mqst); for($i=0; $i<$mnr; $i++) { $mrr = mysql_fetch_array($mqst); echo 'document.write(\'\');'; } echo 'document.write(\'
\');'; require_once '../mysql.php'; $rq = "select MAX(id) as mid from news where hide=0"; $mt = mysql_query($rq); $mr = mysql_fetch_array($mt); mysql_free_result($mt); $sfd = "select date from news where id=".$mr["mid"]; $rst = mysql_query($sfd); $fdt = mysql_fetch_array($rst); mysql_free_result($rst); $findata = $fdt["date"]; $stfn = "select title, id from news where date like '%$findata%' and hide=0 order by orde desc"; echo 'document.write(\'
['.substr($findata, 0, 2).'/'.substr($findata, 2, 2).'/'.substr($findata, 4, 2).']
\');'; if(file_exists('../graphics/news/'.$mrr[1])) {echo 'document.write(\' \');';} echo 'document.write(\''.str_replace("''", "\"", addslashes($mrr[0])).'
\');'; mysql_free_result($mqst); ?>