Its a search result page…As you see in the red cirlces,its the criteria I search for, the database accepts my input but doesnt show that up in the table.
Here is the result_process.php file. Can anyone kindly find out whats wrong?
<!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>
<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1” />
<title>Wellcome To JGCI</title>
<?php
include"config.php";
$roll=$_POST['roll'];
$session=$_POST['session'];
$sql="select * from `ssc` where roll='$roll' and session='$session' ";
$result=mysql_query($sql);
$alvi=mysql_num_rows($result);
if($alvi>0){
echo "<table border='1' align='center' cellpadding='10'>
<tr>
<td colspan=5>See Your Result : : = $roll = : : </td>
<td colspan=5>See Your Session : : = $session = : : </td>
</tr>
<tr>
<th>Student_Name</th>
<th>Father_Name</th>
<th>Mother_Name</th>
<th>Roll</th>
<th>Session</th>
<th>Student_type</th>
<th>GPA</th>
</tr>";
while($row = mysql_fetch_array($alvi)){
echo "<tr>";
echo"<td>" . $row['s_name'] . "</td>";
echo"<td>" . $row['s_f_name'] . "</td>";
echo"<td>" . $row['s_m_name'] . "</td>";
echo"<td>" . $row['roll'] . "</td>";
echo"<td>" . $row['session'] . "</td>";
echo"<td>" . $row['type'] . "</td>";
echo"<td>" . $row['gpa'] . "</td>";
echo"</tr>";}
echo"</table>";}
else {
print "<p align='center'>Wrong Roll number or Session name. Please inseart again.</p>";
}
?>
<p align="center"><a href="result.php">Go To Result Page</a></p>
</div>
<div class="body"></div>
</div>
</body>
</html>