Dear admins..!! i am sorry for my previous post, but, now i am asking you this because i am poor in JS scripting.... i have seen a website. Here the menu and content are displayed in two different DIVs, but, i cant understand how to use that, i have concerned my friends and masters too, byt, they also did not understand how to apply, so, can you help me out in intgrating these both files.
Please....
index.php
<ol>
<?php
mysql_connect('localhost','root','');
mysql_select_db('munnajax_fetch');
$query = "select * from interndb";
$result = mysql_query($query);
while ($row = mysql_fetch_array($result))
{
echo "<li><a href='description.php?id=$row[id]'>$row[by]</a></li>";
}
echo "<br>";
?>
</ol>
<div id="targetspace">Description should come here</div>
description.php
<table width="400">
<?php
mysql_connect('localhost','root','');
mysql_select_db('munnajax_fetch');
$id = $_REQUEST['id'];
$query = "select * from interndb where id='$id'";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
echo "<tr><th>Intern By</th><td>$row[by]</td></tr>";
echo "<tr><th>Position</th><td>$row[title]</td></tr>";
echo "<tr><th>Duration</th><td>$row[duration]</td></tr>";
echo "<tr><th>Detailed Description</th><td>$row[desc]</td></tr>";
?>
</table>