PHP課程總結20161230

來源:互聯網
上載者:User

標籤:mysql;php with mysql

    今天的課程,在老師指導下,我們主要進行了前端靜態頁表單與後端資料庫互動的練習,包括管理員註冊、登入、增加資料、刪除資料。

    一、總結

    1.在編程前,先要一個簡單的圖表,將需要做的內容按照一定的次序書寫下來,然後一步步的去執行,這樣在編程的時候頭腦比較清晰。

    2.編程的時候,進行一步,檢測一次,這樣出現錯誤,可以明確錯誤的位置,節省了錯誤修正的時間。

    3.$shuju = "insert into guanliyuan(username,password) values(‘".$uname."‘,‘".md5($upass)."‘)"。在此語句中,變數$name外面加上了引號,此引號是資料庫的要求,欄位類型為“字串”,與PHP中變數無關。

 

    二、編程過程

    <1>串連並選擇資料庫

 

650) this.width=650;" title="串連.png" src="http://s1.51cto.com/wyfs02/M02/8C/4B/wKioL1hp9HvRKriXAACA0Oi7-wQ637.png-wh_500x0-wm_3-wmp_4-s_1552806421.png" alt="wKioL1hp9HvRKriXAACA0Oi7-wQ637.png-wh_50" />

 

    <2>管理員註冊

   

650) this.width=650;" title="註冊1.png" src="http://s2.51cto.com/wyfs02/M02/8C/4A/wKioL1hp8rSwYjEQAADWYyXh00Y855.png-wh_500x0-wm_3-wmp_4-s_2285288196.png" alt="wKioL1hp8rSwYjEQAADWYyXh00Y855.png-wh_50" />

 

650) this.width=650;" title="註冊2.png" src="http://s2.51cto.com/wyfs02/M00/8C/4E/wKiom1hp8rWQpn6gAAF1MZJT0dU896.png-wh_500x0-wm_3-wmp_4-s_2058160646.png" alt="wKiom1hp8rWQpn6gAAF1MZJT0dU896.png-wh_50" />

 

    <3>管理員登入

 

 

650) this.width=650;" title="登入1.png" src="http://s3.51cto.com/wyfs02/M00/8C/4E/wKiom1hp8xPiwv1KAAB7lRm-k5A716.png-wh_500x0-wm_3-wmp_4-s_2181573612.png" alt="wKiom1hp8xPiwv1KAAB7lRm-k5A716.png-wh_50" />

 

650) this.width=650;" title="登入2.png" src="http://s4.51cto.com/wyfs02/M00/8C/4E/wKiom1hp8xPQkcZAAAC5sKxks7A096.png-wh_500x0-wm_3-wmp_4-s_2148758860.png" alt="wKiom1hp8xPQkcZAAAC5sKxks7A096.png-wh_50" />

 

    <4>增加資料

   

 

650) this.width=650;" title="增減表.png" src="http://s3.51cto.com/wyfs02/M01/8C/4B/wKioL1hp87yBSi0bAAD6tbBhaYc248.png-wh_500x0-wm_3-wmp_4-s_940107121.png" alt="wKioL1hp87yBSi0bAAD6tbBhaYc248.png-wh_50" />

 

650) this.width=650;" title="2017-01-01 18-28-46zengjia1.png" src="http://s4.51cto.com/wyfs02/M01/8C/4E/wKiom1hp9bbT-hT5AAI-fjWeYc8499.png-wh_500x0-wm_3-wmp_4-s_2411764372.png" alt="wKiom1hp9bbT-hT5AAI-fjWeYc8499.png-wh_50" />

 

650) this.width=650;" title="增.png" src="http://s2.51cto.com/wyfs02/M01/8C/4E/wKiom1hp87vDVNZVAAEvNK_Kv78537.png-wh_500x0-wm_3-wmp_4-s_3513680735.png" alt="wKiom1hp87vDVNZVAAEvNK_Kv78537.png-wh_50" />

 

650) this.width=650;" title="2017-01-01 17-26-36增加.png" src="http://s5.51cto.com/wyfs02/M01/8C/4B/wKioL1hp9bWgkIzPAALeGQkeVpM186.png-wh_500x0-wm_3-wmp_4-s_1256046692.png" alt="wKioL1hp9bWgkIzPAALeGQkeVpM186.png-wh_50" />

 

    <5>清除資料

 

 

650) this.width=650;" title="減.png" src="http://s1.51cto.com/wyfs02/M02/8C/4E/wKiom1hp9HvSvRfFAAEiz2iGfIU161.png-wh_500x0-wm_3-wmp_4-s_4210809005.png" alt="wKiom1hp9HvSvRfFAAEiz2iGfIU161.png-wh_50" />

 

650) this.width=650;" title="2017-01-01 18-27-28刪除.png" src="http://s3.51cto.com/wyfs02/M01/8C/4B/wKioL1hp9j7gd7b_AAI1eB9ZWVg629.png-wh_500x0-wm_3-wmp_4-s_3083801846.png" alt="wKioL1hp9j7gd7b_AAI1eB9ZWVg629.png-wh_50" />

 

650) this.width=650;" title="2017-01-01 18-26-27刪除表.png" src="http://s4.51cto.com/wyfs02/M01/8C/4E/wKiom1hp9j2Rt5maAAK6R2VT1yw919.png-wh_500x0-wm_3-wmp_4-s_2648954540.png" alt="wKiom1hp9j2Rt5maAAK6R2VT1yw919.png-wh_50" />

 

 

 

 

 

 

本文出自 “12244280” 部落格,請務必保留此出處http://12254280.blog.51cto.com/12244280/1888289

PHP課程總結20161230

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.