db.func:
J/c5)IB| X1&c?T1 %[ t#nRa Pzp q =26($ $rows = mysql_query( $Query );
U)_x(B3d/ if ( ! $rows ) {
0He^r
&c3 echo SQL指令错误!;
hhJs$c( exit;
E> YE3-] }
rKr\Qy+q return $rows;
%p^`,b} }
j"vL$h }`_x%]EJ function ConnectDatabase( $Database ) {
Jwbb>mB! mysql_connect (ftp, root, );
1sXVuto $db = mysql_select_db( $Database );
T{*!.+E if ( ! $db ) {
W"5VqN6v echo 无法连结数据库!;
GO6uQ}; exit;
s 5F?m }
^7Z.~A y }
9@YhAj ?>
xepp."O SB^xq cratetable.php:
-K0!wrKC F>aaUj P5Pb2|\* Y58et9gRO input.htm:
f}Uf*Bp v.>95|8 [9~6, ;6 ov|pXi<e WCg&* 輸入表單
Q&&oP:4~X* ^x}k1F3 B?;P:!/1 Jy-V\.N>s rf
=Wq_ !4T7@V`G 輸入表單
|GP1[Q{ #M[%JTTn 'H'R6<z5 32K 9@ :QBe3] )/BbASO$)Z Ji0FHa_ 主機名稱
m@g9+7 EskD)Sl +{s -F g a7TvX{<d 生產廠商
d0 8:lYQ jJe?pT]o *^p^tK d{(NeT s 聯絡人
LDj*~\vsq XM:\N$tg _i2k$Nr "IRF^1 p 聯絡人電話
N$P\$ otdm rw| g
?{o2gG :+meaxbu 聯絡人郵箱
t+A9nvj) 4&G
#Bi *m[[>wE o|y1 m7X IP Address
H~lvUHN ZO]P9b 8]xYE19= S.*LsrSV (vwKC
D& 應用名稱
nYy+5u]FG r|Q/:UV?w 1krSX2L 6sNw#pqh 配置文件
GyQvodqD Qv1cf &Yd6w}8 SX[ h|OWtf4 `"y:/F"{ 查看记录
@$5=4HA y*#+:D]o* E[c6*I y`8jz,&. mtVoA8(6 h<bCm`qj j-7aJj% F?b"Rv xtzkgb,0[ U i`#B insert.php:
>lF@M- {ukQBu#}< !twYjOryH[ N;i\.oY
|P7FPmn =JN{j2xY %;b] k 成功輸入一筆資料去看看
wnHfjF aA'of>'ib| ;e6-* __`6 W1 if ( !empty($Send) ) {
5>aK4: S/ ConnectDatabase( pcadmin );
deCi\n $sql = insert into Profile(Name,Produce,Lianluo,Tel,Email) values($Name,$Produce,$Lianluo,$Tel,$Email);
\hg%J/ zB'_YwW mysql_query( $sql );
Koc5~qUY] }
$
U-#woXa ?>
5'n$aFqI cue aOtD 4X5KrecNr 本新闻共
2页,当前在第
1页
1 2 nRs:^Q~o M[ ON2P; aq- | x pBQ(6Y 转自: http://edu.chinaz.com