require_once('global.inc.php'); $lang = $_GET['lang']; $shit = mysql_query("SELECT * FROM news WHERE lang='$lang'"); $nr = mysql_num_rows($shit); $sql = "SELECT * FROM news WHERE lang='$lang' ORDER BY date DESC"; function get_text($t){ global $sql, $lang; $a = array(); $i = 0; $res = mysql_query($sql); while($x = mysql_fetch_array($res)){ $a[$i] = $x['news_body']; $i++; }//end of while return $a[$t]; }//end of text() function get_title($t){ global $sql, $lang; $a = array(); $i = 0; $res = mysql_query($sql); while($x = mysql_fetch_array($res)){ $a[$i] = $x['news_title']; $i++; }//end of while // $arr = spliti("
",$a[$t]); //$txt = ''.$arr[$t].''; return $a[$t]; //return $txt; }//end of text() function get_data($t){ global $sql, $lang; $a = array(); $i = 0; $res = mysql_query($sql); while($x = mysql_fetch_array($res)){ $a[$i] = $x['date']; $i++; }//end of while // $arr = spliti("",$a[$t]); //$txt = ''.$arr[$t].''; return $a[$t]; //return $txt; }//end of text() ?> =get_message("MSG_NEWS_TITLES");?>
|
=get_message("MSG_NEWS_DATE");?> |
||
".get_title($jj)." | "); print ("".date($date_format,get_data($jj))." | ||
=get_message("MSG_NEWS");?>
|
|||
';
if ($j!=0){
print ' ';} print ' '.get_title($j).' '.nl2br(get_text ($j)).' |