3.2.0

how to display simple php 2dim array in the grid?

My question is very simple,
I have an 2 dimension array in php (not a recordset).
I have an array with the column names.
I want to put them in the grid

How can I accomplish it?
(I already see the code starting from JS var arrays...
I already see the php example that is specific for a recordset in mysql)

but... a can't see a JS function that takes a normal array an pass it to JS variables to make the grid

I'm clear on this? ... I know that could be a silly question, but it worth the try.

something like:

$data = $db->GetAll($query); //where $data is 2dim array
echo activewidgets_grid($name, $data);

Thank you in advance !

ro
ro
June 3,

This topic is archived.

See also:


Back to support forum