function getNews($limit = 3, $id) {
if(is_int($id)) {
$query = "SELECT * FROM awNews WHERE NewsID = {$id}";
print 'INT VALUE
';
} else {
$query = "SELECT * FROM awNews ORDER BY NewsID DESC LIMIT {$limit}";
print 'NO VALUE
';
}
$res = mysql_query($query) or die(mysql_error());
$i = 0;
while($row = mysql_fetch_assoc($res)) {
$Content['Content'][$i] = $row['Content'];
$Content['PostTitle'][$i] = $row['PostTitle'];
$Content['PostBy'][$i] = $row['PostBy'];
$Content['PostTime'][$i] = strtotime($row['PostTime']);
$Content['NewsID'][$i] = $row['NewsID'];
$i++;
}
return $Content;
}