am new sencha user .am trying to connect extjs 4 piechart with mysql but its not cannecting.wher i want to chainge in my extjs code?plzz help me.
------------------------------------------------------------------------------------------------------------------------
my extjs code
---------------------------------------------------------
--------------------------------------------------------------------------------------------------
my php code
---------------------------------------------------------------------------------------------------
<?php
$db_name="admin";
$tbl_name="piechart";
$conn = mysql_connect("localhost", "root", "") or die (mysql_error ());
$db = mysql_select_db ("$db_name") or die (mysql_error ());
$result=mysql_query ("SELECT * FROM piechart") or die (mysql_error ());
$data = array();
while ($row=mysql_fetch_object($result))
{
$data [] = $row;
}
echo json_encode($data);
?>
---------------------------------------------------------
its urgent please help me.
thak you for your quick responce .ya data is returned from my PHP to my app.but its not displaying.can you give sample extjs4 pie chart extjs script .hope you will help me.
i knw its too late to answer this question which maght not be helpfull for the one who actually started it.....i hope it will for another person which have similiar problem ....the problem is while using store....you use data store while returning a json decoded data from php file file.....so you have to try using Ext.data.jsonStore or you have to return your data from php with out decoding to json, ...............