In de code staat ergens
<table width="100%" border="1" style="border:1px solid #000000">
maar als ik dus onderstaande code laat checken dan geeft hij volgende foutmelding:
Parse error: syntax error, unexpected '<' in CODE on line 180 Errors parsing CODE
Wat doe ik fout?
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
require_once(JPATH_BASE.DS.'modules'.DS.'mod_uitslagen'.DS.'assets'.DS.'connGewest.php');
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_connGewest, $connGewest);
$query_rsAanduidingen = "SELECT * FROM `aanduidingen` WHERE Scheidsrechter LIKE '%Aernouts%' ORDER BY Datum, Uur";
$rsAanduidingen = mysql_query($query_rsAanduidingen, $connGewest) or die(mysql_error());
$row_rsAanduidingen = mysql_fetch_assoc($rsAanduidingen);
$totalRows_rsAanduidingen = mysql_num_rows($rsAanduidingen);
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="auteur" content="Bert Van den Brande">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Aanduidingen</title>
<link href="http://volley-bal.be/joomla/templates/rt_versatility4_j15/css/style9.css" rel="stylesheet" type="text/css">
</head>
<body>
<p><h5>Aanduidingen Aernouts Dieter</h5><br>
<?php if ($totalRows_rsAanduidingen == 0 ) { ?>
Geen aanduidingen voor deze scheidsrechter.
<?php } else {
echo
<table width="100%" border="1" style="border:1px solid #000000">
<tr>
<td><h5>Type</h5></td>
<td><h5>Datum - Uur</h5></td>
<td><h5>Reeks - Wednr</h5></td>
<td><h5>Wedstrijd</h5></td>
<td><h5>Scheidsrechter</h5></td>
<td><h5>Zaal</h5></td>
</tr>
while ($row_rsAanduidingen = mysql_fetch_assoc($rsAanduidingen)) { ?>
<tr>
<td width="100"><div align="justify"><?php echo $row_rsAanduidingen['Type']; ?></div></td>
<td width="100"><div align="justify"><?php echo date('d/m/Y',strtotime ($row_rsAanduidingen['Datum'])); ?>
<br>
<?php echo $row_rsAanduidingen['Uur']; ?></div></td>
<td width="200"><div align="justify"><?php echo $row_rsAanduidingen['Reeks']; ?><br>
<?php echo $row_rsAanduidingen['Wednr']; ?>
</div></td>
<td width="250"><div align="justify"><?php echo $row_rsAanduidingen['Thuis']; ?>- <?php echo $row_rsAanduidingen['Bezoek']; ?></div></td>
<td width="150"><div align="justify"><?php echo $row_rsAanduidingen['Scheidsrechter']; ?></div></td>
<td width="50"><div align="justify"><?php echo $row_rsAanduidingen['Zaal']; ?></div></td>
</tr>
<?php}?>
echo </table>;