<?php
require_once("includes/connection.php");?>
<html>
<head>
<style type="text/css">
<!--
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: underline;
color: #FFFFFF;
}
a:active {
text-decoration: none;
color: #000000;
}
a {
font-family: Courier New, Courier, monospace;
}
body,td,th {
font-family: Courier New, Courier, monospace;
font-size: 18px;
}
.style1 {font-size: 40px}
#one {
text-align:center;
vertical-align:top;
}
#parent {
position:absolute;
left:60px;
font-size:14px;
}
-->
</style>
</head>
<body>
<table width="100%" height="888" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="186" colspan="2" bgcolor="#CCCCCC"><div align="center" class="style1">DOWNLOAD TREASURE </div></td>
</tr>
<tr>
<td id="one" width="16%" bgcolor="#99CCFF" ><?php
$result =mysql_query("SELECT * FROM subjects",$connection);
if(!$result){
die("connection error : ".mysql_error());
}
while($row = mysql_fetch_array($result)){
echo $row["menu_name"]."<br/>";
}
$parent = mysql_query("SELECT * FROM pages WHERE subject_id = {$row["id"]}" ,$connection);
if(!$parent){
die("connection error : ".mysql_error());
}
while($rowone = mysql_fetch_array($parent)){
echo $rowone["menu_name"];
}
?></td>
<td width="84%"> </td>
</tr>
</table>
</body>
</html>
is there any mistake here.it is a big help for me.