5、r());mysql_select_db($dbname,$link)ordie(‘Can’tusetest:‘.mysql_error());mysql_query(“SETNAMES‘utf8′”);mysql_query(“SETCHARACTER_SET_CLIENT=utf8″);mysql_query(“SETCHARACTER_SET_RESULTS=utf8″);if($_REQUEST['user']){//提交数据$user=$_REQUEST['user'];$pwd=$_REQUEST['pwd'];$sql
6、_insert=”INSERTINTO`test`.`user`(`id`,`user`,`pwd`)VALUES(NULL,‘$user’,‘$pwd’);”;mysql_query($sql_insert);if($id=mysql_insert_id()){$sql_page=”select*fromuserwhereid=$id”;$page_res=mysql_query($sql_page);while($arr=mysql_fetch_array($page_res)){$ajax_arr['page_content']
7、.=’id:’.$arr['id'].’
user:’.$arr['user'].’
8、’id:’.$arr['id'].’
user:’.$arr['user'].’
此文档下载收益归作者所有