I am using a page where rows get fetched from database...
now what i want to do is open a new link for each row...
you will understand it when you see the screenshot....i have attached it....
I want to somehow redirect the link to other page with the value that is unique for that particular row....but i cant figure out how to do it..plz help..
do see the screenshot and the coding
<?php
session_start();
if(isset($_SESSION['eno']))
{
$eno=$_SESSION['eno'];
}
else
{
$eno=$_SESSION['username'];
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" language="javascript" src="TableFilter/tablefilter.js"></script>
<title>Untitled Document</title>
<link rel="stylesheet" href="outpass.css" />
<link rel="stylesheet" href="jquery.ui.all.css" />
<link rel="stylesheet" href="datepicker/jquery.ui.all.css" />
<script src="datepicker/jquery-1.7.1.min.js"></script>
<script src="datepicker/jquery.ui.core.js"> </script>
<script src="datepicker/jquery.ui.widget.js"> </script>
<script src="datepicker/jquery.ui.datepicker.js"></script>
<script>
$(function() {
$( "#out_date,#in_date" ).datepicker({dateFormat: 'yy-mm-dd'});
});
</script>
<?php require("conn.php");
$query="select * from details where eno = '$eno'; ";
$result=mysql_query($query);
$row=mysql_fetch_array($result);
?>
</head>
<body onload="abc()">
<form method="post" action="fill_outpass.php">
<div class="box">
<h1>Outing Requests </h1>
<?php
include("conn.php");
$query="select * from details";
$result=mysql_query($query);
?>
<table id="table1" cellspacing="0" class="mytable">
<?php
echo "<tr>";
echo "<th>Eno</th><th>Name</th><th>Hostel</th><th>Student Details</th><th>Student Outpass</th>";
echo "</tr>";
while($row=mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>",$row['eno'],"</td><td>",$row['name'],"</td><td>",$row['hostel'],"</td>" ;
?>
<td><a href="student_outpass.php">see student details</a> </td>
<td><a href="my_outpass.php">see student outpass</a></td>
<?php
echo "</tr>";
}
echo "</table>";
?>
<script language="javascript" type="text/javascript">
var tf = setFilterGrid("table1");
</script>
</div>
</form>
</body>
</html>