Typical PHP project case-(1) blog Management System 2

Source: Internet
Author: User
Typical PHP project case-(1) blog Management System 2 This article provides the database design, homepage interface implementation, and verification code.

V. database design

1. database table structure

2. document table

3. register a user table


4. image table


5. article comment table


6. Comment Reply table


7. announcement form


8. friend table


6. homepage verification code implementation (learn from others)

Verifycode. php

  

Use this form in the navigation bar on the homepage:

Add a response to the verification code Image and refresh the verification code onClick = "javascript: refresh_code ()" 

Implement this action in the js file

function refresh_code(){document.getElementById('imgcode').src="verifycode.php?a="+Math.random();}
The passed a value is only used for refresh, that is, to load different verification code pages.

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.