php - Why query column return zeros when connect with ODBC connection to MS SQL? -


i want values cloud server on mssql running. use odbc connection in php data. numeric field called balance in cloud return 0 values in myside have non 0 values. have check the datatype return cloud, , float.here code fetch data.

<?php     $select_total_outstanding = "select custcode,custname,balance as_vwcustomer";    $result = odbc_exec($conn1, $select_total_outstanding);  ?>  <table>     <tr>         <th>custcode</th>         <th>custname</th>         <th>balance</th>     </tr> <?php     while (odbc_fetch_row($result)) {         echo '<tr>';                $field1 = odbc_result($result,1);         $field2 = odbc_result($result,2);         $field3 = odbc_result($result,3);         echo '<td>'.$field1.'</td>';         echo '<td>'.$field2.'</td>';         echo '<td>'.$field3.'</td>';         echo '</tr>';    }  ?> </table> 

as_vwcustomer view created in cloud server , have observe as_somethingelse has numeric field return non 0 values on myside successfully.currently have no access query of view created , think there wrong as_vwcustomer balance field.

is there other way values of field?


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -