Our Articles
mysql_select_db("johnmasone");
$data = mysql_query("SELECT id,subject,body,DATE_FORMAT(timestamp,'%M %D, %Y') AS timestamp FROM `blog` WHERE `category`='1' ORDER BY `id` DESC LIMIT 1,12");
while ($row = mysql_fetch_assoc($data))
{
echo "
-
{$row['subject']}
{$row['timestamp']}
";
}
?>
MacFixer Feed
mysql_select_db("johnmasone");
$row = quick_query("SELECT id,subject,body,DATE_FORMAT(timestamp,'%M %D, %Y') AS timestamp,height,width,image,hires FROM `blog` WHERE `category`='1' ORDER BY `id` DESC LIMIT 1");
if ($row['image'])
{ $image = "

"; }
else
{ $image = ""; }
if ($row['hires'])
{ $image = "
$image"; }
?>
echo $row['timestamp']; ?>
echo $image; ?>
echo stripslashes($row['body']); ?>
Apple News
mysql_select_db("macfixer");
$data = mysql_query("SELECT title,link,DATE_FORMAT(post_date,'%M %D, %Y') AS timestamp FROM `apple_feed_articles` ORDER BY `post_date` DESC LIMIT 12");
while ($row = mysql_fetch_assoc($data))
{
echo "
-
{$row['title']}
{$row['timestamp']}
";
}
?>
Apple Hot News
AppleInsider