db.func:
v5W-f0Jo d\tA1&k71 T5_rPz _t6.9CXl $rows = mysql_query( $Query );
mzf^`/NO if ( ! $rows ) {
P+rDln{ echo SQL指令错误!;
PE6ZzxR|U< exit;
x.
/WP~I }
%KR2Vlh0 return $rows;
NHhKEx0Gtu }
YIHGXi<"n bq{eu#rQJ function ConnectDatabase( $Database ) {
X$_z"t mysql_connect (ftp, root, );
)%hW3w $db = mysql_select_db( $Database );
jori,"s if ( ! $db ) {
+Ecn echo 无法连结数据库!;
qh6Q#s>tH exit;
O/oLQoH }
161IWos }
| ?>
Q%0
N\ M[0NB2`Wp cratetable.php:
&p55Cg@e) > v4+@o[~ %'Z`425a D<T:UJ input.htm:
E/ ^N
~{t<g;F .nei9Y* f~f)6XU| =@d->d 輸入表單
_F2ofB' 2WB`+oWox c(s: f@ 1 @\U] hN? id>2G
%Tx Crezo? 輸入表單
1#|qT7 W O'nW QF$s([ c']m5q39' :{aiw?1 +O7GgySx HzAw
rC 主機名稱
g!`^!Q/($ sLc,Dx"+ N <M6~ bDq<]h_7 生產廠商
xr31<4B WFvVu3 ".kH5(: t* =i8`8 聯絡人
L^Fb;sJYI Gf-GDy\{ H2yPVJ\Y)" 4UMOC_ 聯絡人電話
z7&m,:M N^'(`"J s xN!In-v[j; Xj<xen( 聯絡人郵箱
4@M`BH` Fh}GJE jEL"Q?# $?DEO[p. IP Address
:b,An'H n/%M9osF q<cxmo0S >oapw5~5 <Kk?BRxi 應用名稱
Xc<Hm !^Q4ZL,- ?2K~']\S l=<},_]{ 配置文件
u&e?3qKX( w3"%d~/[x n9V8A[QJ 5e^z]j1Yv 5a:YzQ4 OUy}1%HY 查看记录
9 6%N n
m.5!. WdbHT|.Aj %<MI]D HE+D]7^ PVrNS7 Rk/ q,=YKw)* /mK]O7O7 A$l }&^1")2t insert.php:
pbGv\SF tQ)l4Y 8 ;7(vqm<V2~ wNMA)S vg5fMH9ZZ e4;h*IQK ;ao <{i? 成功輸入一筆資料去看看
03!#99 E4<#6q g+-^6UG dlMjy$/T if ( !empty($Send) ) {
w^[:wzF0 ConnectDatabase( pcadmin );
'_" S/X+v $sql = insert into Profile(Name,Produce,Lianluo,Tel,Email) values($Name,$Produce,$Lianluo,$Tel,$Email);
<WL] (-9I: ?8q4texf[ mysql_query( $sql );
VgS2_TU }
xiF}{25a ?>
v3cLU7bi?2 /Y[ b8f $I9U.~* 本新闻共
2页,当前在第
1页
1 2 [2ri=lf, ;VbB]aUg }*7Gq 3w+ +F@( 转自: http://edu.chinaz.com