Hi
I am trying to get data out of MYSQL using the following
webix.ready(function(){
grida = webix.ui({
container:“testA”,
view:“datatable”,
columns:[
{ id:“name”, header:“name”, width:120 },
{ id:“location”, header:“location”, width:60 }
],
autoConfig:true,
autoheight:true,
autowidth:true,
url:“data.php”
});
});
data.php
<?php require_once("common/connector/data_connector.php"); $dbtype = "MySQL"; $conn = mysql_connect('localhost', "root","xxx"); // creates a connection mysql_select_db("DNAME"); // selects a database $data = new JSONDataConnector($conn, $dbtype); $data->render_table("resources","resource_id","name"); nothin is loading any ideas? many thanks