Parse error
Parse error: syntax error, unexpected $end in /mounted-storage/home101b/sub003/sc62988-JRZW/www/straatzone-new/artiesten.php on line 97
Wie kan het vinden?
Wie kan het vinden?
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
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
<?php
$query = "SELECT * FROM artiesten where id='".$_GET['id']."'";
$resultaat = mysql_query($query) or die(mysql_error());
$aantal = mysql_num_rows($resultaat);
if($aantal >= 1)
{
while($rij = mysql_fetch_array($resultaat))
{
$naamrapper = $rij['naam'];
$woonplaats = $rij['woonplaats'];
$foto = $rij['foto'];
$artiest = $rij['artiesten'];
?>
<?php
$sql = "SELECT COUNT(*) AS aantal FROM liedjes WHERE artiestid='".$_GET['id']."';"; // dit is
$res = mysql_query($sql) or die(mysql_error());
while($row = mysql_fetch_assoc($res)){
$tracks= $row['aantal'];
}
?>
<?php
$sql = "SELECT COUNT(*) AS aantal FROM clips WHERE artiestid='".$_GET['id']."';"; // dit is
$res = mysql_query($sql) or die(mysql_error());
while($row = mysql_fetch_assoc($res)){
$clips= $row['aantal'];
}
?>
<html>
<head>
<style type="text/css">
<!--
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;
}
.style2 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #bddbf0; }
}
.style3 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #6d7a80; }
-->
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center>
<table id="Table_01" width="661" height="152" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" background="images/artiesten-paginas_01.png" width="661" height="30" alt=""><table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td><div align="center" class="style2">Artiest(en) Plaatje</div></td>
<td><div align="center" class="style2">Artiest(en) Informatie</div></td>
<td><div align="center" class="style2">Laatste Track</div></td>
</tr>
</table></td>
</tr>
<tr>
<td rowspan="2" background="images/artiesten-paginas_02.png" width="439" height="122" alt=""><table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr>
<td width="50%"><?php
echo'<img src="'.$foto.'">';
?></td>
<td width="50%" class="style3" valign="top"><span class="style1"><strong>Artiest/Groep Naam:</strong> <?php echo"$naamrapper"; ?><br>
<strong>Woonplaats:</strong> <?php echo"$woonplaats"; ?><br>
<strong>Artiesten:</strong> <?php echo"$artiest"; ?><br>
<strong>Aantal Tracks:</strong> <?php echo"$tracks"; ?><br>
<strong>Aantal Clips:</strong> <?php echo"$clips"; ?><br>
<strong>Hits:</strong> 4576</span></td>
</tr>
</table></td>
<td width="213" height="100" valign="top" background="images/artiesten-paginas_03.png" alt="">
<table width="102%" border="0" cellspacing="2" cellpadding="2">
<tr>
<?
$select2 = mysql_query("SELECT * FROM `liedjes` ORDER BY `id` DESC LIMIT 1");
$a2 = 1;
while($blaat2 = mysql_fetch_object($select2)){
?>
<td height="59" valign="top"><span class="style2"><strong>Titel:</strong> <?=$blaat2->titel;?><br>
<strong>Artiest(en):</strong> <?php echo"$naamrapper"; ?><br>
<strong>Hits:</strong> <?php echo"$hits"; ?><br>
</span></td>
</tr>
<tr>
<td width="100%">Hier komt player</td>
</tr>
</table></td>
<td rowspan="2" background="images/artiesten-paginas_04.png" width="9" height="122" alt=""></td>
</tr>
<tr>
<td background="images/artiesten-paginas_05.png" width="213" height="22"></td>
</tr>
</table>
</center>
</body>
</html>
$query = "SELECT * FROM artiesten where id='".$_GET['id']."'";
$resultaat = mysql_query($query) or die(mysql_error());
$aantal = mysql_num_rows($resultaat);
if($aantal >= 1)
{
while($rij = mysql_fetch_array($resultaat))
{
$naamrapper = $rij['naam'];
$woonplaats = $rij['woonplaats'];
$foto = $rij['foto'];
$artiest = $rij['artiesten'];
?>
<?php
$sql = "SELECT COUNT(*) AS aantal FROM liedjes WHERE artiestid='".$_GET['id']."';"; // dit is
$res = mysql_query($sql) or die(mysql_error());
while($row = mysql_fetch_assoc($res)){
$tracks= $row['aantal'];
}
?>
<?php
$sql = "SELECT COUNT(*) AS aantal FROM clips WHERE artiestid='".$_GET['id']."';"; // dit is
$res = mysql_query($sql) or die(mysql_error());
while($row = mysql_fetch_assoc($res)){
$clips= $row['aantal'];
}
?>
<html>
<head>
<style type="text/css">
<!--
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;
}
.style2 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #bddbf0; }
}
.style3 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #6d7a80; }
-->
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center>
<table id="Table_01" width="661" height="152" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" background="images/artiesten-paginas_01.png" width="661" height="30" alt=""><table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td><div align="center" class="style2">Artiest(en) Plaatje</div></td>
<td><div align="center" class="style2">Artiest(en) Informatie</div></td>
<td><div align="center" class="style2">Laatste Track</div></td>
</tr>
</table></td>
</tr>
<tr>
<td rowspan="2" background="images/artiesten-paginas_02.png" width="439" height="122" alt=""><table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr>
<td width="50%"><?php
echo'<img src="'.$foto.'">';
?></td>
<td width="50%" class="style3" valign="top"><span class="style1"><strong>Artiest/Groep Naam:</strong> <?php echo"$naamrapper"; ?><br>
<strong>Woonplaats:</strong> <?php echo"$woonplaats"; ?><br>
<strong>Artiesten:</strong> <?php echo"$artiest"; ?><br>
<strong>Aantal Tracks:</strong> <?php echo"$tracks"; ?><br>
<strong>Aantal Clips:</strong> <?php echo"$clips"; ?><br>
<strong>Hits:</strong> 4576</span></td>
</tr>
</table></td>
<td width="213" height="100" valign="top" background="images/artiesten-paginas_03.png" alt="">
<table width="102%" border="0" cellspacing="2" cellpadding="2">
<tr>
<?
$select2 = mysql_query("SELECT * FROM `liedjes` ORDER BY `id` DESC LIMIT 1");
$a2 = 1;
while($blaat2 = mysql_fetch_object($select2)){
?>
<td height="59" valign="top"><span class="style2"><strong>Titel:</strong> <?=$blaat2->titel;?><br>
<strong>Artiest(en):</strong> <?php echo"$naamrapper"; ?><br>
<strong>Hits:</strong> <?php echo"$hits"; ?><br>
</span></td>
</tr>
<tr>
<td width="100%">Hier komt player</td>
</tr>
</table></td>
<td rowspan="2" background="images/artiesten-paginas_04.png" width="9" height="122" alt=""></td>
</tr>
<tr>
<td background="images/artiesten-paginas_05.png" width="213" height="22"></td>
</tr>
</table>
</center>
</body>
</html>
Gewijzigd op 01/01/1970 01:00:00 door Slaz
tel al je accolades eens.
je moet evenveel { als } hebben. Je mist nu sowieso een }
je moet evenveel { als } hebben. Je mist nu sowieso een }
Hey crispijn, ik kan het echt niet vinden, kzou ook niet weten waar die moet komen.
Zoiets zeker, leer inspringen dan kan je je eigen code lezen. En leer duidelijk benamingen te maken voor je variabele, met $blaat is het erg onduidelijk wat dit zou kunnen bevatten.
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
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
<?php
$query = "SELECT * FROM artiesten where id='".$_GET['id']."'";
$resultaat = mysql_query($query) or die(mysql_error());
$aantal = mysql_num_rows($resultaat);
if($aantal >= 1) {
while($rij = mysql_fetch_array($resultaat)) {
$naamrapper = $rij['naam'];
$woonplaats = $rij['woonplaats'];
$foto = $rij['foto'];
$artiest = $rij['artiesten'];
}
$sql = "SELECT COUNT(*) AS aantal FROM liedjes WHERE artiestid='".$_GET['id']."';"; // dit is
$res = mysql_query($sql) or die(mysql_error());
while($row = mysql_fetch_assoc($res)){
$tracks= $row['aantal'];
}
$sql = "SELECT COUNT(*) AS aantal FROM clips WHERE artiestid='".$_GET['id']."';"; // dit is
$res = mysql_query($sql) or die(mysql_error());
while($row = mysql_fetch_assoc($res)){
$clips= $row['aantal'];
}
}
?>
<html>
<head>
<style type="text/css">
<!--
.style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }
.style2 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #bddbf0; }
.style3 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #6d7a80; }
-->
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center>
<table id="Table_01" width="661" height="152" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" background="images/artiesten-paginas_01.png" width="661" height="30" alt="">
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td><div align="center" class="style2">Artiest(en) Plaatje</div></td>
<td><div align="center" class="style2">Artiest(en) Informatie</div></td>
<td><div align="center" class="style2">Laatste Track</div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td rowspan="2" background="images/artiesten-paginas_02.png" width="439" height="122" alt="">
<table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr>
<td width="50%"><?php echo'<img src="'.$foto.'">'; ?></td>
<td width="50%" class="style3" valign="top">
<span class="style1"><strong>Artiest/Groep Naam:</strong> <?php echo"$naamrapper"; ?><br>
<strong>Woonplaats:</strong> <?php echo"$woonplaats"; ?><br>
<strong>Artiesten:</strong> <?php echo"$artiest"; ?><br>
<strong>Aantal Tracks:</strong> <?php echo"$tracks"; ?><br>
<strong>Aantal Clips:</strong> <?php echo"$clips"; ?><br>
<strong>Hits:</strong> 4576</span>
</td>
</tr>
</table>
</td>
<td width="213" height="100" valign="top" background="images/artiesten-paginas_03.png" alt="">
<table width="102%" border="0" cellspacing="2" cellpadding="2">
<tr>
<?
$select2 = mysql_query("SELECT * FROM `liedjes` ORDER BY `id` DESC LIMIT 1");
$a2 = 1;
while($blaat2 = mysql_fetch_object($select2)):
?>
<td height="59" valign="top">
<span class="style2"><strong>Titel:</strong> <?=$blaat2->titel;?><br>
<strong>Artiest(en):</strong> <?php echo"$naamrapper"; ?><br>
<strong>Hits:</strong> <?php echo"$hits"; ?><br>
</span>
</td>
<?php endwhile; ?>
</tr>
<tr>
<td width="100%">Hier komt player</td>
</tr>
</table>
</td>
<td rowspan="2" background="images/artiesten-paginas_04.png" width="9" height="122" alt=""></td>
</tr>
<tr>
<td background="images/artiesten-paginas_05.png" width="213" height="22"></td>
</tr>
</table>
</center>
</body>
</html>
$query = "SELECT * FROM artiesten where id='".$_GET['id']."'";
$resultaat = mysql_query($query) or die(mysql_error());
$aantal = mysql_num_rows($resultaat);
if($aantal >= 1) {
while($rij = mysql_fetch_array($resultaat)) {
$naamrapper = $rij['naam'];
$woonplaats = $rij['woonplaats'];
$foto = $rij['foto'];
$artiest = $rij['artiesten'];
}
$sql = "SELECT COUNT(*) AS aantal FROM liedjes WHERE artiestid='".$_GET['id']."';"; // dit is
$res = mysql_query($sql) or die(mysql_error());
while($row = mysql_fetch_assoc($res)){
$tracks= $row['aantal'];
}
$sql = "SELECT COUNT(*) AS aantal FROM clips WHERE artiestid='".$_GET['id']."';"; // dit is
$res = mysql_query($sql) or die(mysql_error());
while($row = mysql_fetch_assoc($res)){
$clips= $row['aantal'];
}
}
?>
<html>
<head>
<style type="text/css">
<!--
.style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }
.style2 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #bddbf0; }
.style3 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #6d7a80; }
-->
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center>
<table id="Table_01" width="661" height="152" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" background="images/artiesten-paginas_01.png" width="661" height="30" alt="">
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td><div align="center" class="style2">Artiest(en) Plaatje</div></td>
<td><div align="center" class="style2">Artiest(en) Informatie</div></td>
<td><div align="center" class="style2">Laatste Track</div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td rowspan="2" background="images/artiesten-paginas_02.png" width="439" height="122" alt="">
<table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr>
<td width="50%"><?php echo'<img src="'.$foto.'">'; ?></td>
<td width="50%" class="style3" valign="top">
<span class="style1"><strong>Artiest/Groep Naam:</strong> <?php echo"$naamrapper"; ?><br>
<strong>Woonplaats:</strong> <?php echo"$woonplaats"; ?><br>
<strong>Artiesten:</strong> <?php echo"$artiest"; ?><br>
<strong>Aantal Tracks:</strong> <?php echo"$tracks"; ?><br>
<strong>Aantal Clips:</strong> <?php echo"$clips"; ?><br>
<strong>Hits:</strong> 4576</span>
</td>
</tr>
</table>
</td>
<td width="213" height="100" valign="top" background="images/artiesten-paginas_03.png" alt="">
<table width="102%" border="0" cellspacing="2" cellpadding="2">
<tr>
<?
$select2 = mysql_query("SELECT * FROM `liedjes` ORDER BY `id` DESC LIMIT 1");
$a2 = 1;
while($blaat2 = mysql_fetch_object($select2)):
?>
<td height="59" valign="top">
<span class="style2"><strong>Titel:</strong> <?=$blaat2->titel;?><br>
<strong>Artiest(en):</strong> <?php echo"$naamrapper"; ?><br>
<strong>Hits:</strong> <?php echo"$hits"; ?><br>
</span>
</td>
<?php endwhile; ?>
</tr>
<tr>
<td width="100%">Hier komt player</td>
</tr>
</table>
</td>
<td rowspan="2" background="images/artiesten-paginas_04.png" width="9" height="122" alt=""></td>
</tr>
<tr>
<td background="images/artiesten-paginas_05.png" width="213" height="22"></td>
</tr>
</table>
</center>
</body>
</html>




