这是我正在处理的代码:
<?php
include('../connect.php');
$id=$_SESSION['SESS_FIRST_NAME'];
$results = mysql_query("SELECT * FROM advisory WHERE tid='$id'");
while($rows = mysql_fetch_array($results))
{
$sdsdsd=$rows['level'];
$sdsd=$rows['section'];
}
echo '<input type="hidden" value="'.$sdsdsd.'" name="level" />';
echo '<input type="hidden" value="'.$sdsd.'" name="section" />';
echo '<input type="hidden" value="'.$id.'" name="tidsss" />';
$result = mysql_query("SELECT * FROM prereg WHERE level='$sdsdsd' AND section='$sdsd'");
while($row = mysql_fetch_array($result))
{
echo '<tr class="record">';
echo '<td style="border-left: 1px solid #C1DAD7">'.$row['fname'].' '.$row['mname'].' '.$row['lname'].'</td>';
echo '<td><div align="left"><input type="hidden" value="'.$row['idnumber'].'" name="idnumber[]" /><input type="hidden" value="'.$row['schoolyear'].'" name="schooly[]" /><input type="text" name="grade[]" /> </div></td>';
echo '</tr>';
}
?>
我不明白为什么$sdsdsd
变量未定义?