i created main.php page. this page includes these following php codes,
<?php
$user = "";
$pass = "";
$db = "";
$connect = mysql_connect("", $user, $pass);
if(!$connect)
{
die ("Could not connect to MySQL");
}
mysql_select_db($db, $connect) or die ("Could not open $db: " .mysql_error());
$sql = mysql_query ( "SELECT slno, refno, gname, aname, dob, cid, cod, status FROM add_details" );
$num_rows = mysql_num_rows( $sql );
print "<table border=1 align=center cellpadding=8>\n";
print "<tr>\n";
print "<th>Serial No</th>";
print "<th>Reference No</th>";
print "<th>Guest Name</th>";
print "<th>Agent Name</th>";
print "<th>Date of Booking</th>";
print "<th>Check in Date</th>";
print "<th>Check out Date</th>";
print "<th>Status</td>";
print "<th>Generate Bill</td>";
print "</tr>\n";
while($a_row = mysql_fetch_row($sql))
{
print "<tr>\n";
foreach($a_row as $field)
print "\t<td>$field</td>\n";
print "</tr>\n";
}
print "</table>\n";
mysql_close($connect);
?>
this coding fetch all details from database perfectly. but when i click one value (like gname) it should be show all details of that specific row in new tab. in my db includes 20+ fields. please if anyone know help me. i'm just a beginner...