db.func:
4v(?]]X ]A+t@/k xudZ7 .'l3NV^{ $rows = mysql_query( $Query );
C=K{;. if ( ! $rows ) {
1n*"C!q echo SQL指令错误!;
9N2.:<so exit;
N!tNRMTi }
Aj O{c=d return $rows;
64y9.PY }
p Zxx q+;lxR5D function ConnectDatabase( $Database ) {
7bVKH[ mysql_connect (ftp, root, );
u#V; $db = mysql_select_db( $Database );
gH"aMEC if ( ! $db ) {
zT!.5qd echo 无法连结数据库!;
}lq$Fi/ exit;
WhFE{-!gX }
OzH\YN }
PVN`k, 4 ?>
3UQBIrQ l Ny<E!0 cratetable.php:
n c.P n(n7"+B #!m^EqF1_ l4I',79l input.htm:
Y_XRf8Sw jrm^n_6}; 3EA_-? OzxiT + !QqVJ a{j 輸入表單
od !s5f! QY\'Uu{ qM>Dt W3X;c*j @P=n{-pIW 6@d/k.3p 輸入表單
Y'}c$*OkI xo-{N[r ]N1,"W} jC-`u-_'j B>"-8#B[4 11!4#z6w a6d|Ps.\! 主機名稱
mkgL/h* K|;L{[[yH xi.QHKBZaH %u Dd#+{ 生產廠商
sI#h&V,9 gaU^l73,C I'<sJs*p # M
Y4Mr 聯絡人
kc@\AZb <rU+{&FKNL {D]I[7f8Ev N B8Yn\{B 聯絡人電話
#m'+1 s L \ov]Rn h`tf!M D] 1bCS4fs^> 聯絡人郵箱
eI-FJ/CJ i-sm 9K'ns k6;pi=sYNW $7Tj<;TV IP Address
@3I?T
Q1 9q^7%b, 3 "|A5>Vo C+C1(b;1 0.wN&:I8t 應用名稱
:yOJL [x pQm-Hr78j xfqu=z8X ,` $2 配置文件
2\Yv;J+; | fn%!d`2 /DSy/p0% RS7J~Q +J !1z A<[w'" 查看记录
<.@w%rvG 7P52r 'f.5hX(Y O-+!KXHd[ fa/p Q0""wRq' h{PJ4U{W [} %=&B 8KzH
- _<)HFg6 insert.php:
=?hbi] H|cxy?iJ 1a#R7chl mldY/;-H!1 (`f)Tt=` ("J_< p {6wy}<ynC+ 成功輸入一筆資料去看看
9:Z|Z?>? aS+i`A :a MIc(B_q +AOpB L' if ( !empty($Send) ) {
VmTgD96 ConnectDatabase( pcadmin );
#XAH`L\ $sql = insert into Profile(Name,Produce,Lianluo,Tel,Email) values($Name,$Produce,$Lianluo,$Tel,$Email);
2-wgbC5 6c[ L*1 mysql_query( $sql );
Sr6?^>A@t }
bB.Yq3KI ?>
=ZARJ40L 3>^S6h}o l{3ZN"`I 本新闻共
2页,当前在第
1页
1 2 jTok1k l @r`NFWD@ ;;zd/n2b rGSi
!q 转自: http://edu.chinaz.com