form action=” method="post”
<inputtype="text” name='name placeholder="学号“
<input type="submit”name="tj”
</form>
<?php
if(isset($POST['tj1))
$name=$POST'name’1;
$conn=mysqli connect('localhost’,root’,root’,liangshicong’)
if(!sconn)
echo“数据库连接失败“.mysqli_connect_error();
elsef
echo
mysqli query(sconn,setnames utf8)
$str="select*from e_xsrzxxglwhere e_xh=sname'
$result=mysqli query($conn,$str)
$row=mysqli fetch array(sresult)
<Pphp}}?>
下面输出我是用