phpmssql数据库连接代码
$conn=ADONewConnection('odbc_mssql');
$conn->PConnect("Driver={SQL Server};Server=DLUT-PCSQLEXPRESS;Database=yuyan;",'zhouhao','950288');
$ADODB_FETCH_MODE=ADODB_FETCH_ASSOC;
$sqlstr='select * from yuyan where ps教程nNo=?';
$rst=$conn->execute($sqlstr,'005') or die('connect error');
while(!$rst->EOF)
{
//echo $rst->fields['psnName'].'->'.$rst->fields['www.phprm.com'].'';
echo 'dajiahao';
$rst->movenext();
}
$rst->close();
$conn->close();
/php/39012.htmlwww.phpzy.comtrue/php/39012.htmlTechArticlephpmssql数据库连接代码 $conn=ADONewConnection(odbc_mssql); $conn->PConnect("Driver={SQL Server};Server=DLUT-PCSQLEXPRESS;Database=yuyan;",zhouhao,950288); $ADODB_FETCH_MODE=ADODB_FETCH_ASSOC; $sqlstr=select * from yuyan where ps教程...
PHP之友评论