freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

php網(wǎng)站設(shè)計(jì)項(xiàng)目教學(xué)實(shí)訓(xùn)指導(dǎo)書-文庫(kù)吧

2025-04-01 12:17 本頁(yè)面


【正文】 sql_fetch_array($sel)){ //循環(huán)輸出圖書類別信息 ? option value=?php echo $arr[39。sort39。]。??php echo $arr[39。sort39。]。?/option ?php } }else if($select==Famous_Ids) {//判斷搜索條件是否為“語(yǔ)言” $sel1=mysql_query(select * from tb_program,$conn)。 //查詢圖書語(yǔ)言 while($arr1=mysql_fetch_array($sel1)){ //循環(huán)輸出圖書語(yǔ)言信息 ? option value=?php echo $arr1[39。talk39。]。? selected=selected?php echo $arr1[39。talk39。]。?/option ?php } }else{ ? option value=?php echo $arr1[39。talk39。]。? selected=selected?php echo $arr1[39。talk39。]。?/option ?php } } ? /select /td td width=144input type=image name=imageField src=images/ onclick= return fetch()。 //td /tr /form /table /td td width=98amp。nbsp。/td /tr /table/td(3)最新圖書信息顯示,可以查詢出每類圖書中最新的兩條數(shù)據(jù),并且通過while語(yǔ)句循環(huán)輸出查詢結(jié)果,其關(guān)鍵代碼如下: ?php include(conn/)。 //查詢PHP類最新圖書信息 $select1=mysql_query(select * from tb_book where talk=39。PHP39。 order by id DESC limit 2,$conn)。 //查詢C類最新圖書信息 $select2=mysql_query(select * from tb_book where talk=39。C39。 order by id DESC limit 2,$conn)。 // $select3=mysql_query(select * from tb_book where talk=39。.net39。 order by id DESC limit 2,$conn)。 //查詢JAVA類最新圖書信息 $select4=mysql_query(select * from tb_book where talk=39。JAVA39。 order by id DESC limit 2,$conn)。 //查詢VB類最新圖書信息 $select5=mysql_query(select * from tb_book where talk=39。VB39。 order by id DESC limit 2,$conn)。 //查詢其他類最新圖書信息 $select6=mysql_query(select * from tb_book where talk=39。其他39。 order by id DESC limit 2,$conn)。 $select=mysql_query(select * from tb_book,$conn)。 //查詢所有圖書信息,供搜索使用 $array=mysql_fetch_array($select)。 //獲取所有圖書信息 ? td height=100 align=center valign=baseline table width=281 height=44 border=0 cellpadding=0 cellspacing=0 tr td height=19 colspan=2div align=center class=STYLE3PHP /div/td /tr ?php while($array1=mysql_fetch_array($select1)){ //循環(huán)輸出圖書信息 $talk1=$array1[39。talk39。]。 //定義變量,獲取圖書語(yǔ)言 ? tr td width=21 height=17amp。nbsp。/td td width=248 align=left a href=?id=?php echo $array1[39。id39。]。??php echo $array1 [39。books39。]。?/a/td /tr ?php } ? /table p align=righta target=_blank href=?talk1=?php echo $talk1。?更多amp。lt。amp。lt。/a/p/td //省略部分代碼 注冊(cè)模塊設(shè)計(jì) 注冊(cè)模塊概述注冊(cè)功能主要用于為用戶獲取登錄用戶名和密碼。在首頁(yè)中單擊“注冊(cè)”超鏈接,即可進(jìn)入注冊(cè)頁(yè)面,在注冊(cè)頁(yè)面中填寫用戶名、密碼、部門及真實(shí)姓名后,單擊“注冊(cè)”按鈕即可完成注冊(cè)操作。 注冊(cè)模塊運(yùn)行效果 注冊(cè)模塊實(shí)現(xiàn)過程。 注冊(cè)模塊設(shè)計(jì)效果具體實(shí)現(xiàn)過程如下:(1)用戶注冊(cè)模塊主要由表單頁(yè)面()及數(shù)據(jù)信息處理頁(yè)()組成。,創(chuàng)建form表單,提交用戶注冊(cè)信息,其關(guān)鍵代碼如下: form id=form1 name=form1 method=post action= table width=1000 height=467 border=0 align=center cellpadding=0 cellspacing= 0 id=__01 tr td colspan=7img src=images/ width=1000 height=174 alt= //td /tr tr td rowspan=2img src=images/ width=145 height=213 alt= //td td background=images/ table width=371 height=147 border=0 cellpadding=0 cellspacing=0 tr td width=87用戶名:/td td width=284input name=user type=text id=user //td /tr tr td密碼:/td tdinput name=pwd type=password id=pwd size=22 //td /tr tr td部門:/td tdinput name=section type=text id=section //td /tr tr td真實(shí)姓名:/td tdinput name=name type=text id=name //td /tr /table/td td rowspan=2img src=images/ width=149 height=213 alt= //td /tr tr tdimg src=images/ width=257 height=27 alt= //td td width=75 height=27 input type=image name=imageField src=images/ //td tdimg src=images/ width=54 height=27 alt= //td td width=73 height=27 input type=image src=images/ onclick=()。 return false。 //td tdimg src=images/ width=247 height=27 alt= //td /tr tr td colspan=7img src=images/ width=1000 height=80 alt= //td /tr /table /form(2)用戶單擊“注冊(cè)”按鈕后,對(duì)提交的數(shù)據(jù)進(jìn)行驗(yàn)證,如果正確,則將數(shù)據(jù)添加到指定的數(shù)據(jù)表中,提示用戶注冊(cè)成功;否則,返回用戶注冊(cè)頁(yè)面。: ?php header(contenttype:text/html。charset=utf8)。 //設(shè)置頁(yè)面編碼 include(conn/)。 //包含數(shù)據(jù)庫(kù)連接文件 //判斷用戶名、密碼等信息是否存在 if(isset($_POST[39。user39。]) and isset($_POST[39。pwd39。]) and isset($_POST[39。section39。]) and isset($_ POST[39。name39。])){ //判斷用戶名、密碼等信息是否不為空 if($_POST[39。user39。]!=null and $_POST[39。pwd39。]!=null and $_POST[39。section39。]!=null and $_POST[39。name39。]!=null){ //查詢數(shù)據(jù)庫(kù)中是否存在該用戶名 $select=mysql_query(select * from tb_login where user=39。.$_POST[39。user39。]. 39。,$conn)。 if(mysql_num_rows($select)==0){ //判斷查詢結(jié)果是否為0 //如果用戶名不存在,則執(zhí)行添加操作 $insert=mysql_query(insert into tb_login(user,pwd,section,name) values(39。.$_POST[39。user39。].39。,39。.$_POST[39。pwd39。].39。,39。.$_POST[39。section39。].39。,39。 .$_POST[39。name39。].39。), $conn)。 if($insert){ //判斷添加操作是否執(zhí)行成功 echo scriptalert(39。恭喜您!注冊(cè)成功!39。)。=39。39。/script。 //輸出注冊(cè)成功提示 }else{ echo scriptalert(39。注冊(cè)失??!39。)。=39。39。/script。 //否則輸出注冊(cè)失敗提示 } }else{ //輸出用戶名已存在提示 echo scriptalert(39。用戶名已存在,請(qǐng)重新輸入!39。)。= 39。39。/script。 } }else{ //輸出請(qǐng)?zhí)顚懲暾畔⑻崾? echo scriptalert(39。請(qǐng)?zhí)顚懲暾?cè)信息!39。)。=39。39。 /script。 } } ? 登錄模塊設(shè)計(jì) 登錄模塊概述注冊(cè)成功后,用戶即可使用注冊(cè)的用戶名和密碼進(jìn)行登錄。單擊首頁(yè)頁(yè)面中的“登錄”超鏈接,進(jìn)入登錄頁(yè)面,輸入正確的用戶名和密碼,單擊“登錄”按鈕,即可成功登錄,用戶登錄成功后可以添加和管理圖書信息。 用戶登錄模塊運(yùn)行效果 登錄模塊實(shí)現(xiàn)過程。 登錄模塊的設(shè)計(jì)效果具體實(shí)現(xiàn)過程如下:(1)用戶登錄模塊主要由表單設(shè)計(jì)頁(yè)()及數(shù)據(jù)信息處理頁(yè)()兩個(gè)頁(yè)面組成。,創(chuàng)建form表單提交用戶登錄的用戶名和密碼。其關(guān)鍵代碼如下: form id=form1 name=form1 method=post action= input name=user type=text id=user size=20 / in
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)教案相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1