<?php
if (is_numeric($_GET['id']))
{$id = $_GET['id'];}
include_once "inc_connect.php"; //verbinding maken
function showtitle($id)
{$qnt ="
SELECT
n.NewsItem_Titel as newsitemtitel
FROM newsitems n
WHERE n.NewsItem_ID='".$id."'
AND n.NewsItem_Publist='Y'";
$sqlnt = mysql_query($qnt) or die ( mysql_error( ) );//query is uitgevoerd
while($record = mysql_fetch_array($sqlnt))
{
$titel2 = $record['newsitemtitel'];
echo ($titel2);
}
}
echo"
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
<meta http-equiv='content-type' content='text/html; charset=iso-8859-1'>
<title>".showtitle($id)."</title>
</head>
<body>
<br>
<strong>";showtitle($id);
echo"</strong></body>
</html>";
?>
1.525 views
Ik kom er niet uit waarom de <title> niet als <title> wordt getoond