Home > Backend Development > PHP Tutorial > PHP file MSSQL file PHP file ▼ | Ning涔嫔

PHP file MSSQL file PHP file ▼ | Ning涔嫔

WBOY
Release: 2016-07-14 10:10:25
Original
1524 people have browsed it

鍦≒HP 鎿鎶綔MSSQL锞涴渶丸丸纭畾绯獤粺鄄勮繍琛瀹徧澩槸钖︽敮鎸侊纴杩愯浠浠ヤ笅璇彞珏狠煡lang Pu Jian


[php]
if (function_exists('mssql_connect')){
echo 'chain嚱鏁板瓨鍦纴璇ancun槑鐜鏀寔MSSQL';
}else{
echo ' }

if (function_exists('mssql_connect')){

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="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);濿 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

truehttp: //www.bkjia.com/PHPjc/477514.htmlTechArticle鍦≒HP鎿鎴綔MSSQL鈥渞fall渶簸厛纭畾獤粺鄄翮繍琛瀀[php] if (function_exists(mssql_connect)){ echo鐜鏀?..
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template