Guest_imported
New member
- Jan 1, 1970
- 0
Hi, I was wondering if anyone knows what's wrong with the coding below. I receive the error "Parse error: parse error in /home/virtual/newfound/home/httpd/html/banddatabase2/updateband_audios.php on line 84
" but I can't seem to see what it is. The variable $band_id works fine. If someone could help i'd be greatful. Thanx
<?
$sql = "SELECT * FROM audios_tbl WHERE band_id = '$band_id' ORDER BY name ASC ";
$req = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
$nb = mysql_num_rows($req);
if ($nb<1) {
echo '<center><font face="Verdana" size="2"><b>No audios for this band</b></font></center>';
} else {
<a href="updateband_newaudio.php?user_id=<?php echo "$user_id"; ?>&band_id=<?php echo "$band_id"; ?>"><font face="Verdana" size="2">New Audio</font></a>
<table border="0" cellpadding="2">
<tr>
<td><font face="Verdana" size="2">ID</font></td>
<td><font face="Verdana" size="2">Song Name</font></td>
<td><font face="Verdana" size="2">File Type</font></td>
<td></td>
</tr>
while($data = mysql_fetch_array($req)) {
echo ' <tr>
<td bgcolor="#DDDDDD"><font face="Verdana" size="2">'.$data['id'].'</font></td>
<td bgcolor="#EEEEEE"><font face="Verdana" size="2">'.$data['name'].'</font></td>
<td bgcolor="#DDDDDD"><font face="Verdana" size="2">'.$data['filetype'].'</font></td>
<td bgcolor="#EEEEEE"><a style="FONT-WEIGHT: bold; COLOR: red" href="updateband_deleteaudio.php?id='.$data['id'].'&user_id='.$user_id.'&band_id='.$band_id.'"><font face="Verdana" size="2">X</font></a></td>
</tr>
</table>';
}
} mysql_close($db);
?>
" but I can't seem to see what it is. The variable $band_id works fine. If someone could help i'd be greatful. Thanx
<?
$sql = "SELECT * FROM audios_tbl WHERE band_id = '$band_id' ORDER BY name ASC ";
$req = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
$nb = mysql_num_rows($req);
if ($nb<1) {
echo '<center><font face="Verdana" size="2"><b>No audios for this band</b></font></center>';
} else {
<a href="updateband_newaudio.php?user_id=<?php echo "$user_id"; ?>&band_id=<?php echo "$band_id"; ?>"><font face="Verdana" size="2">New Audio</font></a>
<table border="0" cellpadding="2">
<tr>
<td><font face="Verdana" size="2">ID</font></td>
<td><font face="Verdana" size="2">Song Name</font></td>
<td><font face="Verdana" size="2">File Type</font></td>
<td></td>
</tr>
while($data = mysql_fetch_array($req)) {
echo ' <tr>
<td bgcolor="#DDDDDD"><font face="Verdana" size="2">'.$data['id'].'</font></td>
<td bgcolor="#EEEEEE"><font face="Verdana" size="2">'.$data['name'].'</font></td>
<td bgcolor="#DDDDDD"><font face="Verdana" size="2">'.$data['filetype'].'</font></td>
<td bgcolor="#EEEEEE"><a style="FONT-WEIGHT: bold; COLOR: red" href="updateband_deleteaudio.php?id='.$data['id'].'&user_id='.$user_id.'&band_id='.$band_id.'"><font face="Verdana" size="2">X</font></a></td>
</tr>
</table>';
}
} mysql_close($db);
?>