小编Ryl*_*ron的帖子

Mysql Query在编辑的jTable代码中不起作用,为什么?

我正在使用这个例子: www.jtable.org

我已经下载了jTable PHP版本.然后我编辑了脚本.jTable简单版本正在运行,但我编辑的版本不是.

我可以创建一个列表,但我不能添加一行; 这段代码导致了问题.但是,PHP不会显示任何错误消息.

else if($_GET["action"] == "create")
{
    //Insert record into database
    $result = mysql_query("INSERT INTO veriler(bolge, sehir, firma, adres, tel, web) VALUES('" . $_POST["bolge"] . "', '" . $_POST["sehir"] . "', '" . $_POST["firma"] . "', '" . $_POST["adres"] . "', '" . $_POST["tel"] . "', '" . $_POST["web"] . "'");

    //Get last inserted record (to return to jTable)
    $result = mysql_query("SELECT * FROM veriler WHERE id = LAST_INSERT_ID();");
    $row …
Run Code Online (Sandbox Code Playgroud)

php mysql ajax jquery jquery-jtable

2
推荐指数
1
解决办法
1087
查看次数

标签 统计

ajax ×1

jquery ×1

jquery-jtable ×1

mysql ×1

php ×1