Question here....
i connect a sybase db through ODBC.. the code display below, is work for other OBDC drive but sybase cannot. It cannot select out the data. i dunno where is contain error, anyone can help me , thank you.
$query1 = odbc_exec($dw, "SELECT * FROM dw.DW_EMP") or die (odbc_errormsg());
while($row = odbc_fetch_array($query1)){
echo "Customer Name: ".$row[EMP_ID]."<br />";
echo "Customer : ".$row[NAME]."<br />";
echo "<hr />";
}
odbc_close($dw);
ps.. odbc_fetch_array - use function ( )