




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
Project1MemberManagementSystemSchoolofSoftware,ChengduPolytechnicLecturer:MuQichunTask13TheAdministratorViewsAllMembersCircularlyOutputtingRecordsinDataTableTheadministratorcanentertheback-endmanagementafterlogin.Intheback-endmanagement,firstlycheckthelistofallmembers.Afterqueryingthedatabase,circularlyreadcontentsfromtherecordset,andoutputtheminsequence.Itisnecessarytoaddpermissionjudgmentcontentinthefileonalladministratorpagestoensurethattheadministratorcanviewthepageafterlogin.Next,separatelycreateacheckAdmin.phpfileusingthemethodofcreatingdatabaseconnectionfile,todeterminewhethertheadministratorhaspermission.CircularlyOutputtingRecordsinDataTableThen,createadmin.phpfile.Thecompletecodeofthisfileisasfollows:CircularlyOutputtingRecordsinDataTableCodeAnalysisFirstly,thecheckAdmin.phpfileisavailableattheopeningofthefile,whichisusedtodeterminewhetherthecurrentstatusistheadministratorloginstatus.Ifthestatusisinvalid,thesystemautomaticallyjumpstotheloginscreen.Next,use$sql=“select*frominfoorderbyiddesc”fordatatablequery,then,obtaintherecordsetbythefunctionmysqli_query,takeadataatatimebywhileloop,andoutputthecontentofeachcolumn.Displayoneserialnumberinthelist.Createavariable$i,add1tothevariableaftereachloop,andoutputtheminsequence.Itshouldbenotedthat,thisserialnumberisnotIDcolumnintherecordsofdatatable,becauseIDmaynotjuststartfrom1.Ifsomerecordsaredeleted,thisIDmayalsonotbecontinuous.Whendisplayingwhetheritistheadministrator,use?expressiontojudgethevalueof$info['admin'].DisplayYesifitistrue(thatis,1),otherwise,displayNo.Thelastcolumnisusedinthesubsequentoperation,i.e.,“Deletemembers”and“Setadministrator”.ConclusionThislectureintroducesthemeth
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 拍賣協(xié)議合同
- 噴漆外包協(xié)議合同
- 股份分紅協(xié)議合同
- 建筑法規(guī)協(xié)議的合同是指
- 紋身學(xué)員合同協(xié)議書范本
- 店鋪投資協(xié)議合同
- 掛賬協(xié)議是合同
- 優(yōu)信二手車合作協(xié)議合同
- 浦東離婚協(xié)議合同
- 個(gè)人泵車租賃合同協(xié)議書
- 查對(duì)制度完整版本
- 新教材人教版高中英語(yǔ)必修第二冊(cè)全冊(cè)各單元重點(diǎn)單詞短語(yǔ)句式
- 2025山東能源集團(tuán)中級(jí)人才庫(kù)選拔高頻重點(diǎn)提升(共500題)附帶答案詳解
- DB32T 2060-2024 單位能耗限額
- 斜頸康復(fù)治療
- 體育賽事突發(fā)事件輿情應(yīng)對(duì)預(yù)案
- 生物教案:第二章第節(jié)減數(shù)分裂和受精作用第課時(shí)
- 《跨境電商直播(雙語(yǔ))》課件-4.1跨境直播腳本設(shè)計(jì)
- 專題25 化學(xué)反應(yīng)原理綜合題-平衡主線型-五年(2020-2024)高考化學(xué)真題分類匯編(原卷版)
- 風(fēng)電場(chǎng)場(chǎng)內(nèi)道路、平臺(tái)工程施工工程施工組織設(shè)計(jì)
- 2024年新款滅火器采購(gòu)協(xié)議
評(píng)論
0/150
提交評(píng)論