<
Meta http-equiv="Content-Type" content="text/html; charset=utf-8">
PHP //print("The next line generates an error.
");
//printaline("PLEASE?");
//print("This will not be displayed due to the above error.");
?>
PHP //$conn = odbc_pconnect("myodbc","sa","cvttdev",0);
//$connstr="DRIVER=Microsoft Access Driver (*.mdb);DBQ=".realpath("mydb.mdb");
$connstr="Driver={
sql Server};Server={192.168.22.40};Database=sugarcrm_db;UID=sa;PWD=123456;";
$connid=odbc_connect($connstr,
sql_CUR_USE_ODBC );
$query=odbc_do($connid,"select id,name from accounts");
?>
ID@H_301_30@Title@H_301_30@
|
PHP
while(odbc_fetch_row($query))
{ echo '$name = odbc_result($query,2);
$id=odbc_result($query,1);
echo 'echo ' | echo ' |
}
?>