'; $i++; } $content2 = '
'; $sql = "SELECT sid, title, hometext, bodytext, comments, counter, time FROM ".$prefix."_stories $querylang ORDER BY sid DESC LIMIT 0,10"; $result = $db->sql_query($sql); while ($row = $db->sql_fetchrow($result)) { $sid = $row['sid']; $title = $row['title']; $hometext = $row['hometext']; $bodytext = $row['bodytext']; $haberresim = $row['haberresim']; $comtotal = $row['comments']; $counter = $row['counter']; $time = $row['time']; preg_match('#<\s*img [^\>]*src\s*=\s*(["\'])(.*?)\1#im', $hometext, $image); if (is_array($image) && !empty($image)) { $resim=$image[2]; } else { //blank news image $resim = MX_BASE_URL."media/images/blank_news.jpg"; } $content1 .= '
'.$title.'
'.$title.'
'; $content3 .= '
'.$title.'
'; $content .= $content1.$content2.$content3.'
'; ?>