Can I use SmartClient with PHP and MySQL?
Thanks
Thanks
<?
header('Content-Type: text/html; charset=UTF-8');
?>
<response>
<status>0</status>
<startRow><?=$_GET['_startRow']?></startRow>
<endRow><?=$_GET['_endRow']?></endRow>
<totalRows><?=$nrec?></totalRows>
<data>
<?
while($row=mysql_fetch_array($query))
{
print '<record>'."\r\n";
foreach($fieldArray as $element){
print ' <'.$element.'>'.utf8_encode($row[$element]).'</'.$element.'>'."\r\n";
}
print '</record>'."\r\n";
}
?>
</data>
</response>
<record>
<continent>North America</continent>
<countryName>United States &</countryName>
<countryCode>US</countryCode>
<area>9631420</area>
<population>298444215</population>
<gdp>12360000</gdp>
<independence>1776-07-04</independence>
<government>federal republic</government>
<government_desc>2</government_desc>
<capital>Washington, DC</capital>
<member_g8>true</member_g8>
<article>http://en.wikipedia.org/wiki/United_states</article>
</record>
Comment