Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Stefan on Mar 07, 2008 02:57
open dhtmlx forum
How can i fill the grid with php from mysql

How can i fill the grid with php with a mysql-query? and how can i link cell to a website?

thanks and sorry for my bad english

stefan from germany
Answer posted by Support on Mar 07, 2008 05:33
The component is fully client side and can't connect directly to XML, but it can load data from any kind of server side script, which can be connected to DB

On client side
    grid.loadXML("some.php");

on server side
<?php
    header("Content-type:text/xml");
    //connect to DB
    ...
    //fetch necesary data from DB
    ...
    //output data as XML
    ...
?>