六、综合应用题(本大题15分)
32.现有MySQL数据库“studentdb”中有表“student_info”,其中的数据元素如题32表所示。
请写出以下PHP程序的输出结果。
$connect=MySQL_connect('localhost','root','pwd’);
$select=MySQL_select_db('studentdb',$connect);
$query=MySQL_query('select*from student_info',$connect);
while($array=MySQL_fetch_array($query))
{
echo "$array[Sno],";
echo "$array[Sname],";
echo "Sarray[Ssex],";
echo "Sarray[Sage],";
echo "$array[Sdept] ";
echo "
";
}
?>