Use Dreamweaver to complete the message system and dreamweaver message board

Source: Internet
Author: User
Tags echo date

Use Dreamweaver to complete the message system and dreamweaver message board

How to use Dreamweaver to create a user message system

1. Complete the home page (inde. php)

1. Create a database gbook

 

2. Create the data table required by the message system and add corresponding fields.

 

 

3. Create a site and set up server connections

1. Create a site

 

2. Set the server

 

4. Create index. php on the homepage of the message system.

Use Dreamweaver to set the corresponding content

 

5. Connect the database

Connect to the database.

 

6. php code for setting the current time

<? Php date_default_timezone_set ('Asia/Shanghai'); echo date ("Y-m-d h: I: s");?> (Mainly used to display the current time)

7. Create a record set

 

* When creating a record set, set passid = 0 to confirm that the Administrator has viewed the message.

 

8. Insert the corresponding record set into the table

 

9. Complete the index. php page.

Ii. Message page (book. php)

1. Complete the basic layout of the message page.

 

2. Three new hidden domains are created for data transmission.

IP address <? Php echo $ _ SERVER ['remote _ ADDR '];?>

 

 

Date <? Php date_default_timezone_set ('Asia/Shanghai'); echo date ("Y-m-d h: I: s");?>

 

Passid 0

3. To prevent some users from entering the information to send out the form, check the form.

4. Complete the book. php page.

3. Create a background Administrator Logon page

1. Complete the basic layout of the logon page

 

2. Use user logon in server Behavior

3. Complete the logon page.

4. Background Administrator System

1. Complete page design as required

 

2

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.