I have a error when trying to save to the database and sometimes saves and sometimes don’t so please help me.
The next function is the one that load the form inside of a Windows and then I try to save it
function winMntClientes(selId){
var dhxWins = new dhtmlXWindows();
dhxWins.enableAutoViewport(false);
dhxWins.attachViewportTo("parentId");
dhxWins.setImagePath("classes/codebase/imgs/");
var w1 = dhxWins.createWindow("w1", 20, 30, 790, 330);
w1.setText("Mantenimiento de Usuarios");
var edFrmClnt = w1.attachForm(editClientFrm);
edFrmClnt.load("connectors/guarda_client.php?action=get&id="+selId);
var dpfusuario = new dataProcessor("connectors/guarda_client.php");
dpfusuario.init(edFrmClnt);
edFrmClnt.attachEvent("onButtonClick", function(id){
if (id=='saveButton'){
edFrmClnt.save();
}
})
dpfusuario.attachEvent("onAfterUpdateFinish",function(){
cargaClientes();
w1.close();
})
}
and the guarda_client.php file is:
<?php
require_once("../conf/config.php");
$res=mysql_connect($mysql_server,$mysql_user,$mysql_pass);
mysql_select_db($mysql_db);
require("../classes/codebase/form_connector.php");
//ConnectorSecurity::$security_key = true;
//$_id = $_GET["id"];
$conn = new FormConnector($res,"MySQL");// connector initialization
$conn->enable_log("../log.txt",true);
$conn->render_table("cliente");
//$conn->render_table("cliente","clienteID","nombre, direccion, telefono, celular, bbm, email, estado, lat, lgn, emergencia");// data configuration
?>
So when I go to check the log I see the follow input:
The log have the next error:
====================================
Log started, 30/06/2013 06:06:34
====================================
SELECT `clienteID`,`usuarioID`,`nombre`,`direccion`,`telefono`,`celular`,`bbm`,`email`,`estado`,`lat`,`lgn`,`emergencia` FROM cliente WHERE `clienteID` = '2'
Undefined property: FormConnector::$extra_output at D:\BitNami\wampstack-5.4.16-0\apache2\htdocs\backendg4s\classes\codebase\base_connector.php line 714
Done in 0.19201111793518s
And don’t save anything but can’t find out what is going on here.