您好,欢迎访问一九零五行业门户网

php插入数据到MYSQL中出错,怎么正确插入呢

php插入数据到mysql中出错,如何正确插入呢?
//php代码如下:
//网页输出:
选择数据库studentdata成功
1110009999 李四
1110009997 张三
1110009996 王五
插入失败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 ''id','name')values(1234123,张学究)' at line 1
如何正确插入呢?
------解决方案--------------------
$insert=insert ignore into student('id','name')values($id,'$name');
其它类似信息

推荐信息