XML stands for eXtensible Markup Language. XML is designed to transport and store data. XML is important to know, and very easy to learn. You should have a basic understanding of HTML and Javascript. The difference between HTML and XML is that HTML is about displaying information, while XML is about carrying information. XML does not do anything, XML was created to structure, store and transport information. XML has no predefined tags so you can invent your own.

db->prepare($sql);
$stmt->execute();
$items = $stmt->fetchAll(PDO::FETCH_ASSOC);

echo "";

echo '';

for($i = 0; $i < count($items); $i++){
echo '';

echo '';
echo $items[$i]['title'];
echo '';

echo '';
echo $items[$i]['description'];
echo '';

echo '';
echo $items[$i]['date'];
echo '';

echo '';
echo $items[$i]['author'];
echo '';

echo '';
}

echo '';

?>

You could then create a cronjob that will automatically execute the page every so often.

Tagged with:
 
blog comments powered by Disqus
Set your Twitter account name in your settings to use the TwitterBar Section.