Dreamweaver make a message book based on WordPress

Source: Internet
Author: User
Tags table name dreamweaver mysql database wordpress database

To create a table of data:

Step1

First open phpMyAdmin, into the WordPress database, and add a wp_gbook table and the number of fields 8.

Step2

Then set the name and form of the field below, and set the GID to unsigned and auto_increment, indicating that the column cannot be repeated and automatically generated.

Step3

Press the execution success results as shown below.

Build PHP Platform:

Step4

Enter the blog directory, add a folder for Gbook.

Step5

Open Dreamweaver Click on the right field, archive/admin website and press Add.

Step6

The website name can be set by itself, this prunes is named Gbook.

Step7

Server technology is set to Php+mysql, choose to edit and test on the local computer, and select the directory location of the Web site.

Step8

The test URL is then pressed and the test succeeds if it is connected to the server.

Step9

Click the next step to complete the platform setup.

Set MySQL database connection

Step10

After completing the platform, add a new PHP page.

Step11

Click on the application/MySQL connection in the right field, and enter the line name, server location, user name, password, after the completion of the selection, and then select the name of the database, after the point to the right side of the test, the success of the line will appear the link has been set to complete the dialog box.

Connection Data set:

Step12

Switch the Application tab to the knot, click + Select the data set (query), select the line name just set and the table, the table is the previous new table name, after the completion of the ranking below, select GID and decrement.

Set the display message Block:

Step13

Once the link is complete, save the newly added page.

Step14

Create a table, and then drag the application/tie to the table with the data field displayed below.

Step15

Add a new image, and switch the selection of the image from the beginning to the data source, URL input image location, and then gpic this is used to set the message diagram.

Step16

Then add two more icons, respectively, for the web and Eamil, and click on the small map, in the same place as the link to the data source, respectively, set to Gweb and Gmail.

Step17

After the completion of the table, select the server behavior/Repeat area, this side can be set on each page to display the number of messages, preset is 10 pens.

Step18

Then select the server behavior/display if the dataset is not empty.

Step19

Enter the text without any messages in the blank, and then select the server behavior/If the dataset is empty, it is used to set up, when the database is empty, this text is displayed, of course, lively point can also be made as a picture or SwF animation.

Step20

Click the Tool menu above the point, data/DataSet paging, and then format the display as text.

Step21

After the completion of the pagination is English, then select it, directly modified into Chinese can be.

Step22

Then select the tool menu, data/display record count, to display the current number of pens and pages.

Add Message Block:

Step23

On the top of the message block, select the Tools menu, Form/form, add a table, insert one by one, type field and set the name as follows.

Step24

Respond to the expression section, select the Tool menu, Form/option button, and label the tab in P0.gif.

Step25

Click on the option button, click on the Dynamic button and click on the lightning to select GPIC.

Step26

Select Tool menu, Form/Hide field, Id:date, value: .

Step26

Select the application/insert record on the right, and in the column place, take a little notice, just add the Text field and button options, get one by one of the right to the field name, otherwise, after leaving the speech, there will be no written questions, and finally, when the data is written, the page back to that page, Here directly set index.php can be.

Step27

When you are finished inserting the message form, a tint block appears.

Step28

Click on the top of the Earth, issued directly to test, ha ~ Cool!

Marine! Finally to introduce the front end, looks like a lot, but the actual operation up about as long as 5~10 minutes, in fact, with the Dreamweaver development really very quickly, when with Dreamweaver the whole skeleton out, the insufficient part again coding again good, So far only the back-end management of the part, let prunes a little rest, and then the background management of the part sent out.

Step25

Click on the option button, click on the Dynamic button and click on the lightning to select GPIC.

Step26

Select Tool menu, Form/Hide field, Id:date, value: .

Step26

Select the application/insert record on the right, and in the column place, take a little notice, just add the Text field and button options, get one by one of the right to the field name, otherwise, after leaving the speech, there will be no written questions, and finally, when the data is written, the page back to that page, Here directly set index.php can be.

Step27

When you are finished inserting the message form, a tint block appears.

Step28

Click on the top of the Earth, issued directly to test, ha ~ Cool!

Marine! Finally to introduce the front end, looks like a lot, but the actual operation up about as long as 5~10 minutes, in fact, with the Dreamweaver development really very quickly, when with Dreamweaver the whole skeleton out, the insufficient part again coding again good, So far only the back-end management of the part, let prunes a little rest, and then the background management of the part sent out.

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.