I have this code to query a odbc database and then display a formated number. I try to isolate the problem with this.
Tha fact is that if a run it I get ERR_EMPTY_RESPONSE in Chrome. In IE works ok.
If I comment the line that said "Line 1" works ok in Chrome and if I comment "Line 2" also works.....
Whats going on?????
<?php
$odbcName='xxxxx';
$conn=odbc_connect($odbcName,'user','pass');
$sql="select * from abc";
echo $sql;
$rs=odbc_exec($conn,$sql);
$somefield=odbc_result($rs,"somefield"); //Line 1
echo number_format(0,2); //Line 2
?>