$formConn = new FormConnector($res);
$fromConn->render_table(“medios”,“ID”,“ID,IDCODE, IDTIPO_MEDIO, IDBOVEDA”);
?>[/code]
using form_conector of version 2.6
“require(“lib/dhtmlxForm/codebase/connector/form_connector.php”);”
the program sends error: " Fatal error: Call to a member function render_table() on a non-object in C:…" like the program did not know the function render_table()
using the version of examples
require(“dhtmlxConnector_php/codebase/form_connector.php”);
the program sends error: “Fatal error: Access level to FormConnector::$editing must be protected (as in class Connector) or weaker in C:…”
Finally i make it work . By using the full code of “bulding applications” and the conector under DhmlxForm/samples/common/conector . I do not saw any label indicating the version of each program/library How can i figurate out the version of each program?
That is different problem, not related to the form or connector ( html preprocessing on the site breaks the code of component, we will fix it ). Samples in downloadable package must not be affected.
Original issue can occurs only if connector class was not instantiated correctly, which can be if path to includes is wrong.
$form = new FormConnector($conn);//create connector for dhtmlxForm using connection to mySQL server
$form->render_table(“tab”,“id”,“field1,field2,field3,field4”);
if i run the page data.php (to see the output) the reslut is
Fatal error: Uncaught exception ‘Exception’ with message ‘ID parameter is missed’ in C:\Wamp\www\test\dhtmlxForm\samples\06_data\php\connector\form_connector.php on line 48