jTable插入新记录的问题 [英] jTable issue inserting new records

查看:52
本文介绍了jTable插入新记录的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用jTable,并且在插入新记录后得到以下结果.

记录:错误
结果:"  



这是插入查询,其余代码根据从作者页面下载的示例代码进行.

  $ result  = mysql_query(" .$ _POST [ nombre_establecimiento" ]." .$ _POST [" ]." ','".$ _POST [  estatus_establec_anterior"] ." .$ _POST ["  director_del_establecimiento"]. ','". $ _POST [" ]. ' ,);"'); 



我非常感谢您插入新记录的帮助.

解决方案

结果 = mysql_query(" 插入establecimientos(nombre_establecimiento,localizacion_establecimiento,estatus_establec_anterior,director_del_establecimiento,telefono_establecimiento)VALUES('" _ " ]." ','".


_POST [ " .

I am trying to use jTable and I get the following result after inserting new records.

Record: false
Result: "OK"



This is the insert query and the rest of the code is according to the sample code downloaded from the author page.

$result = mysql_query("INSERT INTO establecimientos(nombre_establecimiento, localizacion_establecimiento, estatus_establec_anterior, director_del_establecimiento, telefono_establecimiento) VALUES('" . $_POST["nombre_establecimiento"] . "','" . $_POST["localizacion_establecimiento"] . "','" . $_POST["estatus_establec_anterior"] . "','". $_POST["director_del_establecimiento"] . "','". $_POST["telefono_establecimiento"] . '",);"' );



I''d appreciate a lot a help to insert new records.

解决方案

result = mysql_query("INSERT INTO establecimientos(nombre_establecimiento, localizacion_establecimiento, estatus_establec_anterior, director_del_establecimiento, telefono_establecimiento) VALUES('" .


_POST["nombre_establecimiento"] . "','" .


_POST["localizacion_establecimiento"] . "','" .


这篇关于jTable插入新记录的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆