This is the last article in this series of tutorials.
We see a few more pages that are not mentioned, respectively.
Keywords related pages
and search related pages
Putting these two parts together is because search is searching for keywords to find articles. Because this textbook is a relatively old textbook, so the structure inside the design may also be relatively old.
Until now, basically there is no new knowledge to explain, see how to build Web pages and the logic of the background:
keywords.php
Line 10th
Get_story_record and Get_writer_record function Similarly, is a function in the db_fns.php:
keyword_add.php
keyword_delete.php
This part of the content is relatively simple, and the previous operations are similar, so it is not detailed, there is no understanding can leave a message.
Next we complete the keyword related page, we go back to the homepage, carry on the search page edit!
When we click on the search link, the address of the link is
search_form.php
This page is simple, that's it:
The code is, of course, simple:
Next we look at the search.php page:
Basically there is no difficult to understand the place, the eradication of keyword search, the search has been displayed, did not search the words will show not found.
Well, here, a complete Web site has been built up. Of course, this is a relatively basic functional web site, about the optimization of the page, CSS did not do anything special meticulous processing. But we know how to use PHP and MySQL link operation Display, the rest of the work is very simple ~
Step by step to teach you to build a website with php+mysql No.7 keywords and search