$sql="select * from student where studentid={$studentid} and likeclassid={$classid}"; PS:likeclassid 是一个完整的字段名 You have an error in your SQL syntax; check the manual that corresponds to yo..
mysql php中SELECT * FROM user ORDER BY time WHERE time >= 1111-11-11 10:10:10会报错,而SELECT * FROM user ORDER BY time和SELECT * FROM user WHERE time >= 1111-11-11 10:10:10都正常,这是为什么...