what I did is to change the sourceData that it has in the example. // 1. Create some dummy data data var sampleData = [ [ 'Bob', 20, 13.45 ], [ 'Bill', 40, 12.92], [ 'Mike', 45, 23.02] ];
This is mine…. // 1. Create some dummy data data var sampleData = [ [<?php do { ?>], ['<?php echo $linea['codigo']?>','<?php echo $linea['descrip'] ?>',<?php echo $linea['costouni'] ?>,<?php echo $linea['valoruni']?>], [<?php } while ($linea =@mysql_fetch_array($result))?>] ];
And I guess the problem would be [<?php do { ?>], (this line maybe is the whom in blank) ….. [<?php } while ($linea =@mysql_fetch_array($result))?>](also this line maybe is the whom in blank)
Sorry,
but i thought that was a problem from datasource which is going with ext.
anyway.
Can you tell me how can i do to pull the data from DB, with PHP
As my previous post said, this isn't the place to learn PHP - Ext doesn't care about your backend as long as you pass the data correctly. That being said, I suggest reading the grid FAQ, which I believe has an example in PHP. Searching this forum will probably lead to some other PHP example/links.