Forum Moderators: coopster
here is the code:
<?
include("config.php");
include("../header.inc");
?>
<table align="center" border="0" width="60%" cellpadding="0" cellspacing="0">
<tr>
<td align="left" width="100%">
<?
$query="SELECT linkID FROM $table_link";
$result=mysql_query($query);
$num_link=mysql_numrows($result);
$result=mysql_query ("SELECT name FROM $table_cat WHERE catID=$id");
if ($row=mysql_fetch_array($result)) {
do {
?>
<b><?=$row["name"]?></b>
<p>
<?
} while($row=mysql_fetch_array($result));
} else {print "<b>No such category</b>";}
?>
<p></p>
</td>
</tr>
<tr>
<td width="100%" align="center">
<?
$result=mysql_query ("SELECT * FROM $table_link WHERE relCatID=$id ORDER BY title ASC");
if ($row=mysql_fetch_array($result)) {
do {
$width=$row["width"];
$height=$row["height"];
if ($width < 10){
$insert_width = "";
} else { $insert_width=" width=\"$width\""; }
if ($height < 10){
$insert_height = "";
} else { $insert_height=" height=\"$height\""; }
?>
<p></p>
</td>
</tr>
</table>
<table border="1" width="100%" bordercolor="#000000" valign="top">
<tr>
<td width="16%" valign="top"><a href="http://site.example.com/characters/category.php?id=<?=$row["name"]?>">Character
Bios</a><br>
<a href="http://site.example.com/episodes/category.php?id=<?=$id?>">Episode Guide</a><br>
<a href="http://site.example.com/relationships/category.php?id=<?=$id?>">Relationships</a><br>
<a href="http://site.example.com/media/category.php?id=<?=$id?>">Media</a></td>
<td width="50%" valign="top"><img border="0" src="<?=$base_url?><?=$row["id"]?>" align="left"><b><?=$row["name"]?></b> <br>
<i><?=$row["description"]?></i>
</td>
</tr>
<tr>
<td width="16%" valign="top">rating</td>
<td width="50%"><? require('http://site.example.com/comments/inc_rate.php');
getComments("1");
submitComments("1","$PHP_SELF");?>
</td>
</tr>
</table>
« <a href="javascript:history.back()">back</a><? include("home/username/public_html/series/footer.inc");?> The error is comming from the very last line, and I can not find anything wrong with it. Please help!
[edited by: jatar_k at 6:39 pm (utc) on June 29, 2005]
[edit reason] generalized url [/edit]