Home > Article > Backend Development > PHP file MSSQL file PHP file ▼ | Ning涔嫔
鍦≒HP 鎿鎶綔MSSQL锞涴渶丸丸纭畾绯獤粺鄄勮繍琛瀹徧澩槸钖︽敮鎸侊纴杩愯浠浠ヤ笅璇彞珏狠煡lang Pu Jian
[php]
if (function_exists('mssql_connect')){
echo 'chain嚱鏁板瓨鍦纴璇ancun槑鐜鏀寔MSSQL';
}else{
echo '
}
echo 'chain嚱鏁板瓨鍦纴璇ancun槑鐜鏀寔MSSQL';
}else{
echo 'SSQL\PACHE\PACHE\?#39;;
}褰 Yang HP鐜涓嶆镮鎸佹椂璇玛瀹変 mutual 涓嬬殑鏂regulation綶杩涜鐜鄄勯利缃?/p>
1. PHP.INI extension=php_pdo_mssql.dll xtension=php_mssql.dll?ldquo;;" Ao Yue Xi base 鍒 plate 拰 mssql 鐐 draft 叧 镄勫瓧鐪緺纴鮮禸浠栧掎鐢绂
2 銆䷷綘鄄勮獛琛尀将徧姧腑涓brand 竴瀹氭湁杩炴帴MSSQL鄄勮繛玺ュ簱锛屾姍浠ヤ綘蹇呴涶嫫€镆ヤ竴涓嬩綘鄄KaiHP搩綍涫嬫槸钖﹀瓨鍦╡xt鐩綍涓嬬殑php_mssql.dll鍜宯twdblib.DLL锛尀embroidery涓婃湁鏂囩珷璇渶綆丆OPY鍒itchINDOW S/SYSTEM32鐩
3 銆侀 tons钖竴涓婣PACHE锛屽啈Huanhui ammonia green emerald kettle chain coax 瓙read嶅烎锛埛徟湁镞跺€椤 ammonia鄄umbrella涔韚彉镐侊级銆? /p>
What is the best way to use PHP+MSSQL? The board is gone邂銆?/p>[php]
mssql_select_db($db_name,$conn);
$sql="INSERT INTO contacts (ID,MemberNo,Name,CustomerStateID,Ext,Phone,Mobile,email,QQ,Gender,Company,Province_ID,City_ID,Address,Postalcode) VALUES (4,'BX4','鍒华江',1,'','','13924007557','','153216429','鐢?#39;,'鍗庡强奇濋橹浠g悊chain夐檺鍏從鞞笢卒嗗叕鍙?#39;,0,0,'骞鈞骞宁卝秺绉€鍖红揪阆撹捾5鍙峰 hoop Chen箸炲啖鍖 baking湇锷′酑蹇冨ぇ铡?妤?#39;,' 510035' )";
$sql=iconv ('utf-8','gb2312',$sql);
$query=mssql_query($sql,$conn);
mssql_select_db($db_name,$conn);
$sql=iconv ('utf-8','gb2312',$sql);濿 borrow pregnant adze 屾垜眏秸鍦ㄨ umbrella涓棣氰欂笾犵粨浜嗗綢涔?br />
$query=mssql_query($sql,$conn);捡悂灉涓brand 笂iconv枞崲锛屼笉钖咀殑炂栫戜浼氶€犳垚mssql_query杩斿洖false,鴴戝凡缁忎gall鐢ㄤ简@mssql_query("SET NAMES UTF8",$conn); What's the point?/p>
瀹屾垚涓婇剄啄勫瀀 chain槸鍙mutual regulations 暟鎹簱杩涜鎿新綔浜嗐€?/p>
http://www.bkjia.com/PHPjc/477514.html