Home  >  Q&A  >  body text

The database cannot be inserted, please answer, thank you

<?phprequire 'connect.php';

$sql="INSERT INTO 'student'('name','course','grade') VALUES ('jj','value','88')";

--------------------------------------------------------------------------------------------

网页提示:< style="color: rgb(0, 0, 0); font-family: "Microsoft YaHei"; white-space: normal;">链接成功添加失败You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''student'('name','course','grade') VALUES ('jj','value','88')' at line 1

兜里有糖兜里有糖1616 days ago1132

reply all(1)I'll reply

  • .

    .2020-05-18 09:08:49

    sql syntax error

    reply
    0
  • Cancelreply