• 2022-06-17
    请补充横线中的代码,将major(专业表)中的id字段的值和name字段的填充到下拉列表中 [?php include "conn.php"; $result=mysqli_query($conn,"SET NAMES UTF8")or die("数据查询失败"); $sql="select * from major"; $result=mysqli_query($conn,$sql) or die("数据查询失败"); … [br][/br] [select name="major"] [?php while($record=mysqli_fetch_assoc($result)){?] [option value=" [?php echo ________ ?][/] [?php } ?] [br][/br]
  • 举一反三