wat is er mis?
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?
$rows = MYSQL_NUM_ROWS($query);
if($rows)
{
for($i=0; $i<$rows; $i++)
{
$results = MYSQL_FETCH_ARRAY($query);
echo "<tr>\n";
echo "<td STYLE='border-bottom: solid 1 #cccccc; height: 16px'>".stripslashes($results['cd_artiest'])."</td>\n";
echo "<td STYLE='border-bottom: solid 1 #cccccc'>".stripslashes($results['cd_titel'])."</td>\n";
echo "<td STYLE='border-bottom: solid 1 #cccccc' align='center'>".$results['cd_type']."</td>\n";
echo "<td STYLE='border-bottom: solid 1 #cccccc' align='center'>".$results['cd_hoesje']."</td>\n";
echo "</tr>\n";
}
}
else
{
echo "<tr>\n";
echo "<td colspan='4'>Er zijn geen MP3's in de database gevonden.</td>\n";
echo "</tr>\n";
}
?>
$rows = MYSQL_NUM_ROWS($query);
if($rows)
{
for($i=0; $i<$rows; $i++)
{
$results = MYSQL_FETCH_ARRAY($query);
echo "<tr>\n";
echo "<td STYLE='border-bottom: solid 1 #cccccc; height: 16px'>".stripslashes($results['cd_artiest'])."</td>\n";
echo "<td STYLE='border-bottom: solid 1 #cccccc'>".stripslashes($results['cd_titel'])."</td>\n";
echo "<td STYLE='border-bottom: solid 1 #cccccc' align='center'>".$results['cd_type']."</td>\n";
echo "<td STYLE='border-bottom: solid 1 #cccccc' align='center'>".$results['cd_hoesje']."</td>\n";
echo "</tr>\n";
}
}
else
{
echo "<tr>\n";
echo "<td colspan='4'>Er zijn geen MP3's in de database gevonden.</td>\n";
echo "</tr>\n";
}
?>
while ($row = mysql_fetch_array($query)) {
echo($row["blaat"]);
}
Sorry, dus de code word??
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?
$rows = MYSQL_NUM_ROWS($query);
if($rows)
{
while($result = mysql_fetch_array($query)) {
echo "<tr>\n";
echo "<td STYLE='border-bottom: solid 1 #cccccc; height: 16px'>".stripslashes($results['cd_artiest'])."</td>\n";
echo "<td STYLE='border-bottom: solid 1 #cccccc'>".stripslashes($results['cd_titel'])."</td>\n";
echo "<td STYLE='border-bottom: solid 1 #cccccc' align='center'>".$results['cd_type']."</td>\n";
echo "<td STYLE='border-bottom: solid 1 #cccccc' align='center'>".$results['cd_hoesje']."</td>\n";
echo "</tr>\n";
}
}
else
{
echo "<tr>\n";
echo "<td colspan='4'>Er zijn geen MP3's in de database gevonden.</td>\n";
echo "</tr>\n";
}
?>
$rows = MYSQL_NUM_ROWS($query);
if($rows)
{
while($result = mysql_fetch_array($query)) {
echo "<tr>\n";
echo "<td STYLE='border-bottom: solid 1 #cccccc; height: 16px'>".stripslashes($results['cd_artiest'])."</td>\n";
echo "<td STYLE='border-bottom: solid 1 #cccccc'>".stripslashes($results['cd_titel'])."</td>\n";
echo "<td STYLE='border-bottom: solid 1 #cccccc' align='center'>".$results['cd_type']."</td>\n";
echo "<td STYLE='border-bottom: solid 1 #cccccc' align='center'>".$results['cd_hoesje']."</td>\n";
echo "</tr>\n";
}
}
else
{
echo "<tr>\n";
echo "<td colspan='4'>Er zijn geen MP3's in de database gevonden.</td>\n";
echo "</tr>\n";
}
?>
Bedankt nogmaals