主要的**
資料庫create table `lw_users` (
;//鏈結表
$result
= mysql_db_query
($lw_dbname
,$query
);//執行結果
$row
= @mysql_num_rows
($result
);//行數
}if(
$row
== 0
)$day
= date
("h.m.d"
);$query
= "insert into `lw_users` (`id`,`username`,`mail`,`password`,`groupid`,`picurl`,`date`) values(null,'$_post[name]','$_post[email]','$_post[password]','3','$uploadfile','$day')"
; $result
= mysql_query
($query
);mysql_close
($connect
);echo ""
;echo "";
echo
"註冊成功,正在跳轉"
;echo ""
;echo "";
}else
}?>
<?php
include
"include/foot.htm"
?>
check-name.php和check-email.php
code:
<?php
include
"config.php"
?>
<?php
// header('content-type:text/html;charset=gb2312');
//echo "loading...";
//sleep(1);
$js_name
=$_get
["js_name"
];//$username=trim($_get['username']);
$query
= "select * from lw_users where username = '$js_name'"
;//鏈結表
$result
= mysql_db_query
($lw_dbname
,$query
);//執行結果
$row
= @mysql_num_rows
($result
);//行數
if($row
== 0
)else
?>
code:
<?php
include
"config.php"
?>
<?php
$js_email
=$_get
["js_email"
];//echo "$js_email";
$query
= "select * from lw_users where mail = '$js_email'"
;//鏈結表
$result
= mysql_db_query
($lw_dbname
,$query
);//執行結果
$row
= @mysql_num_rows
($result
);//行數
**自phpchina論壇的十象
Ajax PHP實現無重新整理分頁效果
後台 mysql connect localhost root mysql query use test mysql query set names utf8 獲取總條數 sql select count as num from test res mysql query sql row mysql ...
ajax php寫的無重新整理分頁
conn.php hostname localhost username root password db 2012 mysql connect hostname,username,password or die 資料庫連線出現錯誤,請稍後訪問。mysql select db db mysql qu...
ajax php 簡單註冊demo
ajax.php頁面 mysql server localhost mysql username root mysql password mysql db test conn mysql connect mysql server,mysql username,mysql password or di...