2.ConnectHandle=DBConnect ("DSN=CVILocalUID=saPWD=123")
ActivateHandle= DBActivateSQL (ConnectHandle, "select * from 标志位表")
while(DBFetchNext(ActivateHandle)==DB_SUCCESS)
{
DBGetColVariant (ActivateHandle, 2, &TempInt)
CA_VariantConvertToType (&TempInt, CAVT_INT, &StartMarkInt)
}
DBDeactivateSQL (ActivateHandle)
DBDisconnect (ConnectHandle)
就是编辑文件,修改里面你认为需要修改的内容,一般要修改下面的这几行:$oc_db_server = 'localhost'
$oc_db_name = 'mobile'
$oc_db_user = 'admin'
$oc_db_pass = 'ma2kivu'
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)