PHP + MySQL Bewerking werkt niet..
Maar ik wil dan dat als je op de plaatje drukt van de stad (een plattegrond met de stad erin) dat hij dan naar reizen.php?p=pallettown (voorbeeld)
gaat en dan iets gaat aanpassen in de MySQL bij de leden van 't spel, maar volgens mij kan dat wel.. maar ik heb waarschijnlijk iets gecombineerd wat niet kan ofzo.. (zie einde van de script).
Mijn bedoeling was: Al drukken ze op een stad van de plattegrond, dan gaat het linken naar bijv. reizen.php?p=pallettown en dat gaat er iets aangepast worden in de MySQL (Ticket gaat eraf en dan de cijfer van de stad komt in de MySQL opgeslagen) en dan "ben je bij" Pallet Town. Hopelijk snappen jullie wat ik bedoel en check de PHP file, en misschien kunnen jullie zeggen wat er aangepast kan worden!
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
<?php /* ------------------------- */
$UPDATE_DB = 1;
include("_include-config.php");
if(! check_login()) {
header("Location: login.php");
exit;
}
mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='{$data->login}'");
if($data->Ticket < 1){
print <<<ENDHTML
<html>
<head>
<title>[.. X-IST ..]</title>
<link rel="stylesheet" type="text/css" href="css-v1.css">
</head>
<body style="margin: 0px;">
<table align=center width=100%>
<tr><td class=subTitle><b>Sorry</b></td></tr>
<tr><td class="mainTxt">
<center><img src="images/airport.gif"></center>
</td></tr>
<tr><td class=mainTxt>U heeft geen Ticket, koop een ticket in de shop.
</table><br><br>
</body>
</html>
/* ------------------------- */ ?>
<html>
<head>
<title>[.. X-IST ..]</title>
<link rel="stylesheet" type="text/css" href="<?php echo ($_COOKIE['v'] == 2) ? "css-v1.css" : "css-v1.css"; ?>">
</head>
<body style="margin: 0px;">
<table width=100%>
<tr><td class="subTitle"><b>Station</b></td>
<tr><td class="mainTxt">
<center><img src="images/airport.gif"></center>
</td></tr>
<tr><td class="mainTxt">
Welkom op het station.<br>
U kunt naar 10 verschillende steden reizen.<br>
Elke reis die je maakt kost 1 ticket.<br>
Die kan je kopen in de shop voor $1000.<br><br>
<tr><td class="mainTxt"><center><b> Selecteer hier onder naar welke stad je heen wilt.</b></td></tr>
<tr><td class="mainTxt" align="center">
<br>
/* GESLICEDE PLATTEGROND */
<table width="521" height="349" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="18">
<img src="images/map_01.jpg" width="520" height="51" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="51" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/map_02.jpg" width="83" height="50" alt=""></td>
<td colspan="4">
<a href="reizen.php?p=pewtercity">
<img src="images/pewtercity.jpg" width="67" height="50" border="0" alt=""></a></td>
<td colspan="5">
<img src="images/map_04.jpg" width="125" height="50" alt=""></td>
<td colspan="4">
<a href="reizen.php?p=ceruleancity">
<img src="images/ceruleancity.jpg" width="77" height="50" border="0" alt=""></a></td>
<td colspan="3">
<img src="images/map_06.jpg" width="168" height="50" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="50" alt=""></td>
</tr>
<tr>
<td colspan="7">
<img src="images/map_07.jpg" width="179" height="53" alt=""></td>
<td colspan="3">
<a href="reizen.php?p=celadoncity">
<img src="images/celadoncity.jpg" width="67" height="53" border="0" alt=""></a></td>
<td>
<img src="images/map_09.jpg" width="29" height="53" alt=""></td>
<td colspan="3">
<a href="reizen.php?p=saffroncity">
<img src="images/saffroncity.jpg" width="68" height="53" border="0" alt=""></a></td>
<td colspan="2">
<img src="images/map_11.jpg" width="43" height="53" alt=""></td>
<td>
<a href="reizen.php?p=lavendertown">
<img src="images/lavendertown.jpg" width="73" height="53" border="0" alt=""></a></td>
<td>
<img src="images/map_13.jpg" width="61" height="53" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="53" alt=""></td>
</tr>
<tr>
<td>
<img src="images/map_14.jpg" width="67" height="62" alt=""></td>
<td colspan="3">
<a href="reizen.php?p=viridiancity">
<img src="images/viridiancity.jpg" width="65" height="62" border="0" alt=""></a></td>
<td colspan="7">
<img src="images/map_16.jpg" width="143" height="62" alt=""></td>
<td colspan="4">
<a href="reizen.php?p=vermilioncity">
<img src="images/vermilioncity.jpg" width="77" height="62" border="0" alt=""></a></td>
<td colspan="3">
<img src="images/map_18.jpg" width="168" height="62" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="62" alt=""></td>
</tr>
<tr>
<td colspan="18">
<img src="images/map_19.jpg" width="520" height="31" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="31" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/map_20.jpg" width="83" height="34" alt=""></td>
<td colspan="3">
<a href="reizen.php?p=palettown">
<img src="images/palettown.jpg" width="56" height="34" border="0" alt=""></a></td>
<td colspan="13">
<img src="images/map_22.jpg" width="381" height="34" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="34" alt=""></td>
</tr>
<tr>
<td colspan="9">
<img src="images/map_23.jpg" width="230" height="17" alt=""></td>
<td colspan="3" rowspan="2">
<a href="reizen.php?p=fuchsiacity">
<img src="images/fuchsiacity.jpg" width="64" height="42" border="0" alt=""></a></td>
<td rowspan="3">
<img src="images/map_25.jpg" width="46" height="56" alt=""></td>
<td colspan="5" rowspan="3">
<img src="images/map_26.jpg" width="180" height="56" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="17" alt=""></td>
</tr>
<tr>
<td colspan="3" rowspan="2">
<img src="images/map_27.jpg" width="98" height="39" alt=""></td>
<td colspan="5" rowspan="2">
<a href="reizen.php?p=cinnabarisland">
<img src="images/cinnabarisland.jpg" width="82" height="39" border="0" alt=""></a></td>
<td rowspan="2">
<img src="images/map_29.jpg" width="50" height="39" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="25" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="images/map_30.jpg" width="64" height="14" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="14" alt=""></td>
</tr>
<tr>
<td colspan="18">
<img src="images/map_31.jpg" width="520" height="11" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="11" alt=""></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="67" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="16" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="15" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="34" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="7" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="11" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="29" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="50" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="16" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="29" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="19" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="46" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="3" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="9" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="34" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="73" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="61" height="1" alt=""></td>
<td></td>
</tr>
</table>
/* GESLICEDE PLATTEGROND EINDE */
/* Hier kun je zien hoeveel mensen in elk stad zitten */
<?
$select = mysql_query("SELECT * FROM `[users]` WHERE Citynumb=1 AND id != '0'");
$aantal = mysql_num_rows($select);
?>
<td width="50%">Leden in Palet Town: <b><? echo $aantal; ?></b></td>
<td width="50%"> </td>
</tr>
<tr valign="top">
<?
$select = mysql_query("SELECT * FROM `[users]` WHERE Citynumb=2 AND id != '0'");
$aantal = mysql_num_rows($select);
?>
<td width="50%">Leden in Viridian City: <b><? echo $aantal; ?></b></td>
<td width="50%"> </td>
</tr>
<tr valign="top">
<?
$select = mysql_query("SELECT * FROM `[users]` WHERE Citynumb=3 AND id != '0'");
$aantal = mysql_num_rows($select);
?>
<td width="50%">Leden in Pewter City: <b><? echo $aantal; ?></b></td>
<td width="50%"> </td>
</tr>
<tr valign="top">
<?
$select = mysql_query("SELECT * FROM `[users]` WHERE Citynumb=4 AND id != '0'");
$aantal = mysql_num_rows($select);
?>
<td width="50%">Leden in Cerulean City: <b><? echo $aantal; ?></b></td>
<td width="50%"> </td>
</tr>
<tr valign="top">
<?
$select = mysql_query("SELECT * FROM `[users]` WHERE Citynumb=5 AND id != '0'");
$aantal = mysql_num_rows($select);
?>
<td width="50%">Leden in Saffron City: <b><? echo $aantal; ?></b></td>
<td width="50%"> </td>
</tr>
<?
$select = mysql_query("SELECT * FROM `[users]` WHERE Citynumb=6 AND id != '0'");
$aantal = mysql_num_rows($select);
?>
<td width="50%">Leden in Celadon City: <b><? echo $aantal; ?></b></td>
<td width="50%"> </td>
</tr>
<tr valign="top">
<?
$select = mysql_query("SELECT * FROM `[users]` WHERE Citynumb=7 AND id != '0'");
$aantal = mysql_num_rows($select);
?>
<td width="50%">Leden in Lavender Town: <b><? echo $aantal; ?></b></td>
<td width="50%"> </td>
</tr>
<tr valign="top">
<?
$select = mysql_query("SELECT * FROM `[users]` WHERE Citynumb=8 AND id != '0'");
$aantal = mysql_num_rows($select);
?>
<td width="50%">Leden in Vermilion City: <b><? echo $aantal; ?></b></td>
<td width="50%"> </td>
</tr>
<tr valign="top">
<?
$select = mysql_query("SELECT * FROM `[users]` WHERE Citynumb=9 AND id != '0'");
$aantal = mysql_num_rows($select);
?>
<td width="50%">Leden in Fuchsia City: <b><? echo $aantal; ?></b></td>
<td width="50%"> </td>
</tr>
<tr valign="top">
<?
$select = mysql_query("SELECT * FROM `[users]` WHERE Citynumb=10 AND id != '0'");
$aantal = mysql_num_rows($select);
?>
<td width="50%">Leden in Cinnabar Island: <b><? echo $aantal; ?></b></td>
<td width="50%"> </td>
</tr>
</td></tr>
</table>
/* HIER IS DE ZELF AANGEPASTE STUK */
<?
else if($_GET['p'] == "pallettown") {
print " <tr><td class=\"subTitle\"><b>Station</b></td></tr>\n";
mysql_query("UPDATE `[users]` SET `Citynumb`='1' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `Ticket`=`Ticket`-1 WHERE `login`='{$member->login}'");
print " <tr><td class=\"mainTxt\">Je bent nu in Pallet Town!</td></tr>\n";
}
?>
<?
else if($_GET['p'] == "viridiancity") {
print " <tr><td class=\"subTitle\"><b>Station</b></td></tr>\n";
mysql_query("UPDATE `[users]` SET `Citynumb`='2' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `Ticket`=`Ticket`-1 WHERE `login`='{$member->login}'");
print " <tr><td class=\"mainTxt\">Je bent nu in Viridian City!</td></tr>\n";
}
?>
<?
else if($_GET['p'] == "pewtercity") {
print " <tr><td class=\"subTitle\"><b>Station</b></td></tr>\n";
mysql_query("UPDATE `[users]` SET `Citynumb`='3' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `Ticket`=`Ticket`-1 WHERE `login`='{$member->login}'");
print " <tr><td class=\"mainTxt\">Je bent nu in Pewter City!</td></tr>\n";
}
?>
<?
else if($_GET['p'] == "ceruleancity") {
print " <tr><td class=\"subTitle\"><b>Station</b></td></tr>\n";
mysql_query("UPDATE `[users]` SET `Citynumb`='4' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `Ticket`=`Ticket`-1 WHERE `login`='{$member->login}'");
print " <tr><td class=\"mainTxt\">Je bent nu in Cerulean City!</td></tr>\n";
}
?>
<?
else if($_GET['p'] == "saffroncity") {
print " <tr><td class=\"subTitle\"><b>Station</b></td></tr>\n";
mysql_query("UPDATE `[users]` SET `Citynumb`='5' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `Ticket`=`Ticket`-1 WHERE `login`='{$member->login}'");
print " <tr><td class=\"mainTxt\">Je bent nu in Saffron City!</td></tr>\n";
}
?>
<?
else if($_GET['p'] == "celadoncity") {
print " <tr><td class=\"subTitle\"><b>Station</b></td></tr>\n";
mysql_query("UPDATE `[users]` SET `Citynumb`='6' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `Ticket`=`Ticket`-1 WHERE `login`='{$member->login}'");
print " <tr><td class=\"mainTxt\">Je bent nu in Celadon City!</td></tr>\n";
}
?>
<?
else if($_GET['p'] == "lavendertown") {
print " <tr><td class=\"subTitle\"><b>Station</b></td></tr>\n";
mysql_query("UPDATE `[users]` SET `Citynumb`='7' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `Ticket`=`Ticket`-1 WHERE `login`='{$member->login}'");
print " <tr><td class=\"mainTxt\">Je bent nu in Lavender Town!</td></tr>\n";
}
?>
<?
else if($_GET['p'] == "vermilioncity") {
print " <tr><td class=\"subTitle\"><b>Station</b></td></tr>\n";
mysql_query("UPDATE `[users]` SET `Citynumb`='8' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `Ticket`=`Ticket`-1 WHERE `login`='{$member->login}'");
print " <tr><td class=\"mainTxt\">Je bent nu in Vermilion City!</td></tr>\n";
}
?>
<?
else if($_GET['p'] == "fuchsiacity") {
print " <tr><td class=\"subTitle\"><b>Station</b></td></tr>\n";
mysql_query("UPDATE `[users]` SET `Citynumb`='9' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `Ticket`=`Ticket`-1 WHERE `login`='{$member->login}'");
print " <tr><td class=\"mainTxt\">Je bent nu in Fuchsia City!</td></tr>\n";
}
?>
<?
else if($_GET['p'] == "cinnabarisland") {
print " <tr><td class=\"subTitle\"><b>Station</b></td></tr>\n";
mysql_query("UPDATE `[users]` SET `Citynumb`='10' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `Ticket`=`Ticket`-1 WHERE `login`='{$member->login}'");
print " <tr><td class=\"mainTxt\">Je bent nu in Cinnabar Island!</td></tr>\n";
}
?>
</body>
</html>
</html>
<noscript><noscript><plaintext><plaintext>
<? mysql_close(); ?>
$UPDATE_DB = 1;
include("_include-config.php");
if(! check_login()) {
header("Location: login.php");
exit;
}
mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='{$data->login}'");
if($data->Ticket < 1){
print <<<ENDHTML
<html>
<head>
<title>[.. X-IST ..]</title>
<link rel="stylesheet" type="text/css" href="css-v1.css">
</head>
<body style="margin: 0px;">
<table align=center width=100%>
<tr><td class=subTitle><b>Sorry</b></td></tr>
<tr><td class="mainTxt">
<center><img src="images/airport.gif"></center>
</td></tr>
<tr><td class=mainTxt>U heeft geen Ticket, koop een ticket in de shop.
</table><br><br>
</body>
</html>
/* ------------------------- */ ?>
<html>
<head>
<title>[.. X-IST ..]</title>
<link rel="stylesheet" type="text/css" href="<?php echo ($_COOKIE['v'] == 2) ? "css-v1.css" : "css-v1.css"; ?>">
</head>
<body style="margin: 0px;">
<table width=100%>
<tr><td class="subTitle"><b>Station</b></td>
<tr><td class="mainTxt">
<center><img src="images/airport.gif"></center>
</td></tr>
<tr><td class="mainTxt">
Welkom op het station.<br>
U kunt naar 10 verschillende steden reizen.<br>
Elke reis die je maakt kost 1 ticket.<br>
Die kan je kopen in de shop voor $1000.<br><br>
<tr><td class="mainTxt"><center><b> Selecteer hier onder naar welke stad je heen wilt.</b></td></tr>
<tr><td class="mainTxt" align="center">
<br>
/* GESLICEDE PLATTEGROND */
<table width="521" height="349" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="18">
<img src="images/map_01.jpg" width="520" height="51" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="51" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/map_02.jpg" width="83" height="50" alt=""></td>
<td colspan="4">
<a href="reizen.php?p=pewtercity">
<img src="images/pewtercity.jpg" width="67" height="50" border="0" alt=""></a></td>
<td colspan="5">
<img src="images/map_04.jpg" width="125" height="50" alt=""></td>
<td colspan="4">
<a href="reizen.php?p=ceruleancity">
<img src="images/ceruleancity.jpg" width="77" height="50" border="0" alt=""></a></td>
<td colspan="3">
<img src="images/map_06.jpg" width="168" height="50" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="50" alt=""></td>
</tr>
<tr>
<td colspan="7">
<img src="images/map_07.jpg" width="179" height="53" alt=""></td>
<td colspan="3">
<a href="reizen.php?p=celadoncity">
<img src="images/celadoncity.jpg" width="67" height="53" border="0" alt=""></a></td>
<td>
<img src="images/map_09.jpg" width="29" height="53" alt=""></td>
<td colspan="3">
<a href="reizen.php?p=saffroncity">
<img src="images/saffroncity.jpg" width="68" height="53" border="0" alt=""></a></td>
<td colspan="2">
<img src="images/map_11.jpg" width="43" height="53" alt=""></td>
<td>
<a href="reizen.php?p=lavendertown">
<img src="images/lavendertown.jpg" width="73" height="53" border="0" alt=""></a></td>
<td>
<img src="images/map_13.jpg" width="61" height="53" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="53" alt=""></td>
</tr>
<tr>
<td>
<img src="images/map_14.jpg" width="67" height="62" alt=""></td>
<td colspan="3">
<a href="reizen.php?p=viridiancity">
<img src="images/viridiancity.jpg" width="65" height="62" border="0" alt=""></a></td>
<td colspan="7">
<img src="images/map_16.jpg" width="143" height="62" alt=""></td>
<td colspan="4">
<a href="reizen.php?p=vermilioncity">
<img src="images/vermilioncity.jpg" width="77" height="62" border="0" alt=""></a></td>
<td colspan="3">
<img src="images/map_18.jpg" width="168" height="62" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="62" alt=""></td>
</tr>
<tr>
<td colspan="18">
<img src="images/map_19.jpg" width="520" height="31" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="31" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/map_20.jpg" width="83" height="34" alt=""></td>
<td colspan="3">
<a href="reizen.php?p=palettown">
<img src="images/palettown.jpg" width="56" height="34" border="0" alt=""></a></td>
<td colspan="13">
<img src="images/map_22.jpg" width="381" height="34" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="34" alt=""></td>
</tr>
<tr>
<td colspan="9">
<img src="images/map_23.jpg" width="230" height="17" alt=""></td>
<td colspan="3" rowspan="2">
<a href="reizen.php?p=fuchsiacity">
<img src="images/fuchsiacity.jpg" width="64" height="42" border="0" alt=""></a></td>
<td rowspan="3">
<img src="images/map_25.jpg" width="46" height="56" alt=""></td>
<td colspan="5" rowspan="3">
<img src="images/map_26.jpg" width="180" height="56" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="17" alt=""></td>
</tr>
<tr>
<td colspan="3" rowspan="2">
<img src="images/map_27.jpg" width="98" height="39" alt=""></td>
<td colspan="5" rowspan="2">
<a href="reizen.php?p=cinnabarisland">
<img src="images/cinnabarisland.jpg" width="82" height="39" border="0" alt=""></a></td>
<td rowspan="2">
<img src="images/map_29.jpg" width="50" height="39" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="25" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="images/map_30.jpg" width="64" height="14" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="14" alt=""></td>
</tr>
<tr>
<td colspan="18">
<img src="images/map_31.jpg" width="520" height="11" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="11" alt=""></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="67" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="16" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="15" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="34" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="7" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="11" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="29" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="50" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="16" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="29" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="19" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="46" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="3" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="9" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="34" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="73" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="61" height="1" alt=""></td>
<td></td>
</tr>
</table>
/* GESLICEDE PLATTEGROND EINDE */
/* Hier kun je zien hoeveel mensen in elk stad zitten */
<?
$select = mysql_query("SELECT * FROM `[users]` WHERE Citynumb=1 AND id != '0'");
$aantal = mysql_num_rows($select);
?>
<td width="50%">Leden in Palet Town: <b><? echo $aantal; ?></b></td>
<td width="50%"> </td>
</tr>
<tr valign="top">
<?
$select = mysql_query("SELECT * FROM `[users]` WHERE Citynumb=2 AND id != '0'");
$aantal = mysql_num_rows($select);
?>
<td width="50%">Leden in Viridian City: <b><? echo $aantal; ?></b></td>
<td width="50%"> </td>
</tr>
<tr valign="top">
<?
$select = mysql_query("SELECT * FROM `[users]` WHERE Citynumb=3 AND id != '0'");
$aantal = mysql_num_rows($select);
?>
<td width="50%">Leden in Pewter City: <b><? echo $aantal; ?></b></td>
<td width="50%"> </td>
</tr>
<tr valign="top">
<?
$select = mysql_query("SELECT * FROM `[users]` WHERE Citynumb=4 AND id != '0'");
$aantal = mysql_num_rows($select);
?>
<td width="50%">Leden in Cerulean City: <b><? echo $aantal; ?></b></td>
<td width="50%"> </td>
</tr>
<tr valign="top">
<?
$select = mysql_query("SELECT * FROM `[users]` WHERE Citynumb=5 AND id != '0'");
$aantal = mysql_num_rows($select);
?>
<td width="50%">Leden in Saffron City: <b><? echo $aantal; ?></b></td>
<td width="50%"> </td>
</tr>
<?
$select = mysql_query("SELECT * FROM `[users]` WHERE Citynumb=6 AND id != '0'");
$aantal = mysql_num_rows($select);
?>
<td width="50%">Leden in Celadon City: <b><? echo $aantal; ?></b></td>
<td width="50%"> </td>
</tr>
<tr valign="top">
<?
$select = mysql_query("SELECT * FROM `[users]` WHERE Citynumb=7 AND id != '0'");
$aantal = mysql_num_rows($select);
?>
<td width="50%">Leden in Lavender Town: <b><? echo $aantal; ?></b></td>
<td width="50%"> </td>
</tr>
<tr valign="top">
<?
$select = mysql_query("SELECT * FROM `[users]` WHERE Citynumb=8 AND id != '0'");
$aantal = mysql_num_rows($select);
?>
<td width="50%">Leden in Vermilion City: <b><? echo $aantal; ?></b></td>
<td width="50%"> </td>
</tr>
<tr valign="top">
<?
$select = mysql_query("SELECT * FROM `[users]` WHERE Citynumb=9 AND id != '0'");
$aantal = mysql_num_rows($select);
?>
<td width="50%">Leden in Fuchsia City: <b><? echo $aantal; ?></b></td>
<td width="50%"> </td>
</tr>
<tr valign="top">
<?
$select = mysql_query("SELECT * FROM `[users]` WHERE Citynumb=10 AND id != '0'");
$aantal = mysql_num_rows($select);
?>
<td width="50%">Leden in Cinnabar Island: <b><? echo $aantal; ?></b></td>
<td width="50%"> </td>
</tr>
</td></tr>
</table>
/* HIER IS DE ZELF AANGEPASTE STUK */
<?
else if($_GET['p'] == "pallettown") {
print " <tr><td class=\"subTitle\"><b>Station</b></td></tr>\n";
mysql_query("UPDATE `[users]` SET `Citynumb`='1' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `Ticket`=`Ticket`-1 WHERE `login`='{$member->login}'");
print " <tr><td class=\"mainTxt\">Je bent nu in Pallet Town!</td></tr>\n";
}
?>
<?
else if($_GET['p'] == "viridiancity") {
print " <tr><td class=\"subTitle\"><b>Station</b></td></tr>\n";
mysql_query("UPDATE `[users]` SET `Citynumb`='2' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `Ticket`=`Ticket`-1 WHERE `login`='{$member->login}'");
print " <tr><td class=\"mainTxt\">Je bent nu in Viridian City!</td></tr>\n";
}
?>
<?
else if($_GET['p'] == "pewtercity") {
print " <tr><td class=\"subTitle\"><b>Station</b></td></tr>\n";
mysql_query("UPDATE `[users]` SET `Citynumb`='3' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `Ticket`=`Ticket`-1 WHERE `login`='{$member->login}'");
print " <tr><td class=\"mainTxt\">Je bent nu in Pewter City!</td></tr>\n";
}
?>
<?
else if($_GET['p'] == "ceruleancity") {
print " <tr><td class=\"subTitle\"><b>Station</b></td></tr>\n";
mysql_query("UPDATE `[users]` SET `Citynumb`='4' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `Ticket`=`Ticket`-1 WHERE `login`='{$member->login}'");
print " <tr><td class=\"mainTxt\">Je bent nu in Cerulean City!</td></tr>\n";
}
?>
<?
else if($_GET['p'] == "saffroncity") {
print " <tr><td class=\"subTitle\"><b>Station</b></td></tr>\n";
mysql_query("UPDATE `[users]` SET `Citynumb`='5' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `Ticket`=`Ticket`-1 WHERE `login`='{$member->login}'");
print " <tr><td class=\"mainTxt\">Je bent nu in Saffron City!</td></tr>\n";
}
?>
<?
else if($_GET['p'] == "celadoncity") {
print " <tr><td class=\"subTitle\"><b>Station</b></td></tr>\n";
mysql_query("UPDATE `[users]` SET `Citynumb`='6' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `Ticket`=`Ticket`-1 WHERE `login`='{$member->login}'");
print " <tr><td class=\"mainTxt\">Je bent nu in Celadon City!</td></tr>\n";
}
?>
<?
else if($_GET['p'] == "lavendertown") {
print " <tr><td class=\"subTitle\"><b>Station</b></td></tr>\n";
mysql_query("UPDATE `[users]` SET `Citynumb`='7' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `Ticket`=`Ticket`-1 WHERE `login`='{$member->login}'");
print " <tr><td class=\"mainTxt\">Je bent nu in Lavender Town!</td></tr>\n";
}
?>
<?
else if($_GET['p'] == "vermilioncity") {
print " <tr><td class=\"subTitle\"><b>Station</b></td></tr>\n";
mysql_query("UPDATE `[users]` SET `Citynumb`='8' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `Ticket`=`Ticket`-1 WHERE `login`='{$member->login}'");
print " <tr><td class=\"mainTxt\">Je bent nu in Vermilion City!</td></tr>\n";
}
?>
<?
else if($_GET['p'] == "fuchsiacity") {
print " <tr><td class=\"subTitle\"><b>Station</b></td></tr>\n";
mysql_query("UPDATE `[users]` SET `Citynumb`='9' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `Ticket`=`Ticket`-1 WHERE `login`='{$member->login}'");
print " <tr><td class=\"mainTxt\">Je bent nu in Fuchsia City!</td></tr>\n";
}
?>
<?
else if($_GET['p'] == "cinnabarisland") {
print " <tr><td class=\"subTitle\"><b>Station</b></td></tr>\n";
mysql_query("UPDATE `[users]` SET `Citynumb`='10' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[users]` SET `Ticket`=`Ticket`-1 WHERE `login`='{$member->login}'");
print " <tr><td class=\"mainTxt\">Je bent nu in Cinnabar Island!</td></tr>\n";
}
?>
</body>
</html>
</html>
<noscript><noscript><plaintext><plaintext>
<? mysql_close(); ?>
Alvast bedankt!
eXa
Gewijzigd op 01/01/1970 01:00:00 door EXa
Post alsjeblieft alleen relevante code...
wat bedoelt U?