php,javascript,html problem

Hi
I’ve some prob with some php page.
i’ve a page as studentinfo.php like that :

///////////////////////////////////////////studentinfo.php////////////////////////////////////

<?php include "config.php"; $r=mysql_query("select distinct s_session from studentinfo order by s_session" );

?>

<?php
while($row=mysql_fetch_array($r)){
?>
<option value="<?php  echo htmlspecialchars($row['s_session']);?>"><?php  echo htmlspecialchars($row['s_session']);?></option>
<?php
}
?>
</select>

/////////////////////////////end/////////////////////////////////////////////

the corresponding getstudent.php page is like that :

///////////////////////////getstudent.php//////////////////////////////

<?php
include "config.php";
$q=$_GET['q'];
echo $q;
$qu="select * from studentinfo where s_session='".$q."'";
$r=mysql_query($qu);
if($r)
{
echo "succesfully done.thnk u";
}

echo "<b><h4><table border='1' width='70%'>";

echo “

Student id Student Name Student Roll Hall Name Exam Roll Registration No Dept. Name Session”;
//echo "    ";

while($row = mysql_fetch_array($r))
{
echo “

”.$row[‘s_id’]." ".$row[‘s_name’]." ".$row[‘s_roll’]." ".$row[‘hname’]." ".$row[‘s_exam_roll’]." ".$row[‘s_reg_no’]." ".$row[‘deptname’]." ".$row[‘s_session’]."";
?> Delete <?php } ?>

///////////////////end//////////////////////////////////////////

in this case the confirmation function does not work at all.i cann’t understand what is the fault.plz help me to solve this prob.give methe solution plz

Sponsor our Newsletter | Privacy Policy | Terms of Service