Execute('SELECT * FROM general LIMIT 0,1'); $howmany = $general->Fields('mainart_howmany'); echo ''."\n\r"; echo ''; ?> <?=$general->Fields('window_title')?> http://www.katzar.net/ Fields('meta_desc'))?> he-il editor@katzar.net editor@katzar.net קצר.נט Execute(" (SELECT 'a' AS src,id,author,title,outer_title,type,addtime_ts,is_hundred_words FROM articles A WHERE (A.type<>2) AND (A.is_active=1) AND (A.is_show_homepage=1) ORDER BY is_main_art DESC, id DESC LIMIT 0,$howmany) UNION ALL (SELECT 'g' AS src,id,author,title,outer_title,0,UNIX_TIMESTAMP(addtime_ts) AS addtime_ts,0 FROM galleries B WHERE B.is_potd=1 AND B.is_active=1 ORDER BY id DESC LIMIT 0,$howmany) ORDER BY addtime_ts DESC "); while (!$news3->EOF) { $news3_date = date('d-m-Y H:i', $news3->Fields('addtime_ts')); if (strlen(''.$news3->Fields('outer_title'))>1) { $news3_title = $news3->Fields('outer_title'); } else { $news3_title = $news3->Fields('title'); } $title=$news3_title; if ($news3->Fields('src')=='a') { $link='http://www.katzar.net/open_fullart.php?artid='.$news3->Fields('id'); if ($news3->Fields('type')==3) { $title='דעה: '.$news3_title.' / '.$news3->Fields('author'); $link='http://www.katzar.net/opinions.php?load_id='.$news3->Fields('id'); } if ($news3->Fields('is_hundred_words')==1) { $title='"מהמילה": '.$news3_title; $link='http://www.katzar.net/hundred.php?load_id='.$news3->Fields('id'); } } else { $link='http://www.katzar.net/potd_show.php?id='.$news3->Fields('id'); } ?> Fields('author')?> <?=$title?> MoveNext(); } $news3->Close(); unset($news3); ?> Close(); unset($general); DATABASE('close'); ?>