function _getNews($limit = '5') { $result = mysql_query('SELECT * FROM JLabsNews ORDER BY PostID ASC LIMIT '.$limit) or die(mysql_error()); $i = 0; while($row = mysql_fetch_object($result)) { $Content['PostBy'][$i] = $row->PostBy; $Content['PostTitle'][$i] = $row->PostTitle; $Content['PostTime'][$i] = $row->PostTime; $Content['PostContent'][$i] = $row->PostContent; $Content['PostID'][$i] = $row->PostID; $i++; } return $content; }