时间:2021-07-01 10:21:17 帮助过:3人阅读
PHP and ODBC: XHTML Example 1 <?php $conn = odbc_connect( "DRIVER={MySQL ODBC 3.51 Driver};Server=localhost;Database=phpodbcdb", "username", "password"); if (!($conn)) { echo "Connection to DB via ODBC failed: "; echo odbc_errormsg ($conn ); echo "
\n"; } $sql = "SELECT 1 as test"; $rs = odbc_exec($conn,$sql); echo "
Test |
---|
$result |
希望本文所述对大家的php程序设计有所帮助。