ThinkPHP(3.2)搭建簡單留言板項目

來源:互聯網
上載者:User

標籤:style   blog   ar   color   sp   資料   on   div   log   

1.基本業務功能

  》查看所有留言功能,index/index需要一個頁面,用來展示當前應用程式中所有留言資訊(預設頁面)。

  展示形式:表格或者無序列表,這裡用表格,方便些

  》查看單條留言,index/view顯示某條留言的詳細資料。

    單擊留言列表中得到某條留言時,才顯示單條資訊的詳細頁面。

  》添加留言index/add。通過html表格的形式,想資料庫中插入一條留言。

  》修改/編輯留言index/edit:通過html表格的形式,允許使用者修改資料庫中的某條留言。

  》刪除留言index/delete:把資料庫中的結果集刪除掉。刪除成功後,應該重新進入留言列表頁面。

2,資料表設計

1 create table `msg` (2   `id` int(11) not null auto_increment primary key,3   `title` varchar(255) not null default ‘‘,4   `content` text not null,5   `autho` varchar(255) not null default ‘‘,6   `time` timestamp not null default current_timestamp on update current_timestamp7 8 ) engine myisam  charset=utf8 ;

 

ThinkPHP(3.2)搭建簡單留言板項目

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.