de presentatie is 1 rij + fuctie bladeren
nu wil ik de gegevens: title, description en keywords ook in de meta tag opnemen.
heeft iemand een voorbeeld scriptje hoe ik dat kan doen
<?
require_once("config.php");
$db_conn = mysql_connect($host,$db_user,$db_pass);
if(!$db_conn) {echo "connection failed"; exit;}
mysql_select_db($database,$db_conn);
$thisNr = 0;
if (isset($_GET['function']) && $_GET['function']== 'show')
{
if (isset($_GET['id'])){$thisNr = $_GET['id'];}
}
$sql = "SELECT * FROM tabel_naam";
$result = mysql_query($sql);
$nr = 0;
while ($rij = mysql_fetch_assoc($result))
{
$page[$nr] = array('id'=>$rij['id'], 'url'=>$rij['url'],'title'=>$rij['title'],'description'=>$rij['description'],'keywords'=>$rij['keywords'], 'accepted'=>$rij['accepted']);
$nr++;
}
//Informatie op 'nr' aanroepen.
echo " <tr><td><H3><p><b><a href=".$page[$thisNr]['url'].">".$page[$thisNr]['title']."</a></b></p></H3></td>
<td><p><b>Omschrijving:</b></p></td></tr>
<td><p>".$page[$thisNr]['description']."</p></td></tr>
<td><p><b>Zoekwoorden:</b></p></td></tr>
<td><p>".$page[$thisNr]['keywords']."</p></td></tr>
<td><p><b>Internet adres:</a></b></p></td></tr>
<td><p><b><a href=".$page[$thisNr]
['url'].">".$page[$thisNr]['url']."</a><b></p></td></tr>";
echo "<tr><td><a href='index.php?function=show&id=".($thisNr-1)."'>terug</a> ";
echo "<a href='index.php?function=show&id=".($thisNr+1)."'>verder</a></td></tr>";
?>