Syntax error unexpected '<'
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?
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<?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>;
// 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>;
Graag in het vervolg bij code, [code] [/code] tags gebruiken.
Topic verplaatst. [/modedit]
Gewijzigd op 19/11/2010 11:23:30 door Bas IJzelendoorn
Toevoeging op 19/11/2010 10:07:33:
zet html die je echod tussen "" might fix the problem
Toevoeging op 19/11/2010 10:09:01:
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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)) { ?>
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)) { ?>