Code: Selecteer alles
<?php
//maak een verbinding met de database
$link = mysql_connect("localhost", "root");
mysql_select_db("theyello_iwg3wjo", $link);
//selecteer alle artikelen met naam van de auteur
$sql = "SELECT iwg3_content.id, iwg3_content.created_by, iwg3_content.title, iwg3_content.created FROM
iwg3_content WHERE iwg3_content.created_by = $id ORDER BY iwg3_content.created";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
if(isset($_GET['id']))
{
$id=$_GET['id'];
} else {
$id=62;
}
echo "
{$CA_BLOCK_START}
{$CA_CAP2_START}Artikelen{$CA_CAP2_END}
<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
<tr>
<td class="cat" width="100%" align="center"><h4>Joomla Artikelen</h4></td>
</tr>
<tr>
<td class="row1">
<table cellspacing="1" cellpadding="2" border="0" width="100%">
<tr>
<th nowrap="nowrap" align="center">Titel</td>
<th nowrap="nowrap">Datum</td>
</tr>
<tr>
<td width=50%><a href='index.php?option=com_content&view=article&id=" . $row["id"] . "&catid=47:blog&Itemid=49'>" . $row["title"] . "</a></td>
<td width=50%>" . $row["created"] . "</td>
</tr>
</table>
</td>
</table>
{$CA_BLOCK_END}
";
//sluit de database
mysql_close($link);
?>
Hier wordt gezegd dat ik de php en de opmaak uit elkaar moet halen. Maar ik heb geen idee hoe dat moet en hoe ik mijn data dus op de .html pagina krijg.