Can anyone pls help me to deal with the odbc's problem. My code is as following:
<?php
if(!($db = odbc_connect("test", "", ""))) //line 7
die("could not connect to database");
echo "hello";
$result = odbc_do($db,"SELECT * FROM member");
while (odbc_fetch_row($result)) {
echo "<TR><TD>".odbc_result($result, 'name')."</TD></TR>";
echo "hello";
}
ODBC_Free_Result($result);
?>
i get this error message:
SQL error: , SQL state 00000 in SQLConnect in c:\program files\apache group\apache\htdocs\member.php on line 7