我已经尝试过研究这个问题,但没有发现任何有同样问题的人,请在这里容忍我,因为我不太熟悉使用@Bind或接口。在任何情况下,我的计算机上都设置了MYsql服务器,为了通过浏览器从我的SQL数据库的学生表中查询不同的值,我必须键入localhost:8080/ students /A number。("select * from students where studentId = :studentId")
Student getStudentById(@Bind("stud
为什么这段代码会导致语法错误?为什么我捕捉不到异常?protected function RunQuery($sql) { $stmt = $pdo->prepare($sql);
$stmt->execute($sql); print_r("Unable to prepare the query");