I have a content like this :
EDIT FOR ID:
echo '<table>';
$row=mysql_fetch_array($query){
echo '<tr onclick="window.location=\'index.php?id='$row['id']'\'"><td>Row1</td></tr>';
echo '<tr onclick="window.location=\'index.php?id='$row['id']'\'"><td>Row2</td></tr>';
}
echo '</table>';
When the user press on a tr , another table will show up matching the http request. In other words i will use the $_GET['id'] value in a query:
$sql="SELECT * FROM `table` WHERE `id`='".$_GET['id']."'";
$query=mysql_query($sql,$db);
In this way another table ,containing different data deppending on user request, will show up when a row is clicked.It works fine,but the only problem is that i have to do this without reloading the page.Any idea? I need some examples too because i am new in Js,Ajax,etc.