db.func:
VTE .^EK! m{HS0l' 4tBYR9| kffcm/ $rows = mysql_query( $Query );
kuP(r if ( ! $rows ) {
6i/(5 nQ echo SQL指令错误!;
}|=|s f exit;
b\2
ds, }
c^W)07-X5y return $rows;
j\M?~=*w }
z2GY:<s '`Hr} function ConnectDatabase( $Database ) {
R6->t #n, mysql_connect (ftp, root, );
dy[X3jQB $db = mysql_select_db( $Database );
nu%*'. if ( ! $db ) {
OneY_<*a< echo 无法连结数据库!;
FYQS)s exit;
WpvhTX }
gB33? }
eaU ?>
eHUOU>&P] sW\!hW1*x cratetable.php:
,ig/s2ZG6X v]UwJz3< Q~9^{sHZjP ]`WJOx4 input.htm:
Q7CsJzk~) iy.\=Cs$N J{G?-+` K|=A: @=u3ZVD 輸入表單
:ShT|n7 8&dF T)_hpt. J'r^/ |R:'\+E qH_Dc=~la 輸入表單
COlaD"Y uB?ZcF}Tk )+Pus~w 9>#6*/Oa7 u ^RxD^=L 9lE_nc X@FN|Rdh 主機名稱
[2cD:JL ,/unhfs1q a8Wwq?@ pfI&E#:5 生產廠商
-UT}/:a d/@,@8: BJ(M2|VH ,R|BG 聯絡人
g9F?z2^ 2:ylv<\$ C7AUsYM 4B][S'f 聯絡人電話
tq?!-x+> akQ7K >(RkZ}z 2J;g{95z 聯絡人郵箱
v &+R^iLE @KAI4LP 9&NgtZpt U/BR*Zn]* IP Address
#e5\j\#. Z/J y'$x &+R?_Ooibk Aiea\jBv L/^I*p, 應用名稱
xId.GWY1 E4xa[iZ fikkY= Du){rVY^d 配置文件
BsJC0I( H>@+om n(]-y@X0_ uW3!Yg@ hR|MEn6KC #3d(M 查看记录
6LZ;T.0o pD]OT-8 -Y;3I00( */DO ex"y FC"8#*x ?0xgRe< 8HdAFRw E1 f\%!2l dC4'{n|7 }:#P)8/v>% insert.php:
{FTqu. WOf 4o N)>ID(}F1 wH6aAV~1 jlg(drTo 1@=po)Hnp n?K 成功輸入一筆資料去看看
y18Y:)DkL dnuu&Rv W`*r>`krVJ 1g~R/*Jo if ( !empty($Send) ) {
FU<Jp3<% ConnectDatabase( pcadmin );
Vs{|xG7WD $sql = insert into Profile(Name,Produce,Lianluo,Tel,Email) values($Name,$Produce,$Lianluo,$Tel,$Email);
gKCX|cULY G9@0@2aY8 mysql_query( $sql );
wn)W
?P;k }
!$>R j ?>
;IM}|2zuN q6X1P"%. EDs\,f} 本新闻共
2页,当前在第
1页
1 2 _n\GNUA $
o#V# jm r"D> ;P&OX5~V 转自: http://edu.chinaz.com