db.func:
(TZK~+]@sb +Mo4g2W lc,k-}n NI?O $rows = mysql_query( $Query );
MBWoPK if ( ! $rows ) {
TU|#Pz7n-Z echo SQL指令错误!;
1Lb)S@Q`*R exit;
g}_2T\$k }
_Ewh:IM- return $rows;
,6^<Vg }
KuR]X``2 9Yt|Wj function ConnectDatabase( $Database ) {
kV'zAF
v mysql_connect (ftp, root, );
N:`_Vl $db = mysql_select_db( $Database );
Phn^0 iF if ( ! $db ) {
6z\!lOVjb echo 无法连结数据库!;
9D3W _eIc exit;
.j4y0dh33 }
@)pC3Vi^ }
\K$\-]N+ ?>
:8yebOs "6U0
!.ro@ cratetable.php:
um9&f~M e{x>u( mP)bOAU cH_qHXi[G input.htm:
[ja^Bhu Ag8/%a~( >CvhTrPI 8m0*89HEu Snkb^Kt 輸入表單
Uu7]`U l \(Ma>E4PNU mm>l:M TF ag'hHFV u!X~!h-6~ ^Gk)aX 輸入表單
Cu@q*:' dA<%4_WZty .@{v{ ip?]&5s `l45T~`]$ An_(L*Qz It3k#A0 主機名稱
l%+ &V^: "M/c0`>C!i "L.k
m ULK]' Rn 生產廠商
'xS@cFo( S(.J 1uw1(iL+ `,AOxJ:$ 聯絡人
|uy@v6 oG)T>L[& q
4Pv\YO xoVd[c! 聯絡人電話
1gK|n [W
)%0lx B
W*8 +pYgh8w@ 聯絡人郵箱
{XU!p: x QPm[4Fd{G I'xc$f_+ [pU(z'caS IP Address
b'pwRKpx $7YZ;=~B A{>w5T ]sEuh~F 5&%M L 應用名稱
XoD:gf
u^xnOVE )VQ[}iT T[4xt,[a 配置文件
<,$*(dX)( e(w c
[bv +788aK,{# ~Bl,_?CBr cq>J]35 }Bv1fbD4U 查看记录
rhLhFN{h 0WzoI2Q f\5w@nX n
^9?(a4u
!RJ@;S Ch{6=k bK qJF'KHyU{l R:n|1]*f3X 9+ Mj$ 4U\>TFO insert.php:
6<@mBZ X8v)yDtw O-[YU%K3? z~f;}`0 G1it
3^*$ hpQ #`rhn wmV=GV8 d 成功輸入一筆資料去看看
W/A@q o" <
e3] pM g@x72$j ^XeJZkLEB if ( !empty($Send) ) {
{8mJ<b>VA ConnectDatabase( pcadmin );
KT<i%)t2 $sql = insert into Profile(Name,Produce,Lianluo,Tel,Email) values($Name,$Produce,$Lianluo,$Tel,$Email);
ax5n} _S[@?]=`b mysql_query( $sql );
n<|8Onw }
#IGcQY ?>
=oXlJ[)h -J!n 7 =mQY%l 本新闻共
2页,当前在第
1页
1 2 o[wiQ9Tl Vel(+HS t,TlW^- hQ>$"0K
转自: http://edu.chinaz.com