Step by step, we will teach you how to use PHP + MySql to build the No. 7 keyword and search for the website, and mysqlno.7.

Source: Internet
Author: User
Tags php and mysql

Step by step, we will teach you how to use PHP + MySql to build the No. 7 keyword and search for the website, and mysqlno.7.

This is the last article in this series of tutorials.

We can see that there are still several pages not mentioned, which are

Keywords pages


Search-Related Pages



Put these two parts together because search is the keyword used to search for the article. Because this teaching material is a relatively old teaching material, the architectural design in it may also be relatively old.

Up to now, there are basically no new knowledge points to explain. Let's take a look at how to build the logic of the web page and the background:

Keywords. php



10th rows

The get_story_record and get_writer_record functions are similar. It is a function in db_fns.php:




Keyword_add.php



Keyword_delete.php



This part of content is relatively simple, and is similar to the previous operations, so I will not elaborate on it. If you do not understand it, you can leave a message.


Next, we have completed the keyword-related pages. Let's go back to the homepage and edit the search page!


After we click the search link, the link address is

Search_form.php

This page is very simple:


The Code is also very simple:



Next, let's look at the search. php page:



Basically, there is nothing difficult to understand. If you find the keyword, it will be displayed. If you do not find the keyword, it will not be found.


Now, a complete website has been built. Of course, this is a relatively basic functional website. css is not particularly detailed in page optimization. However, we know how to use php and mysql link operations to display the information, and the rest of the work is very simple ~

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.