Ask for help with php program
Next php code is being included in a table on a link page. For each category there is a script like this one. But it gives an error for the last php tag. can anybody tell me what's wrong?
<?
$verbinding=mysql_connect("localhost", "phpgebruiker", "php");
mysql_select_db("webleren");
$query = "SELECT sitenaam, url FROM linkpagina WHERE categorie=='science fiction';
$resultaat = mysql_query($query);
while ($T_string) {
$T_string = mysql_fetch_assoc($resultaat);
print $T_string($sitenaam);
$T_string = mysql_fetch_assoc($resultaat);
}?>
<?
mysql_free_result($resultaat);
mysql_close($verbinding);
?>
|