Android Programmer learns PHP Development (28)-Simple blogging system-phpstorm

Source: Internet
Author: User
Tags learn php mysql query
Simple Blog system, publish, edit, delete, database exercises ~ temporarily do not consider security, first look at GIF motion diagram:



Look at the database:



OK, look at the code:

conn.php:

<?php    /**     * mysql_query-send a MySQL query *     /    /**     * Connection Database (return Resource)     *    /@mysql_connect ( "127.0.0.1:3306", "Root", "") or Die ("MySQL database connection failed");    /**     * Select a database to use as the default database (*/    @mysql_select_db ("blog") or Die ("DB connection Failed");


index.php:

<a href= "index.php" ><b>index</b></a><a href= "add.php" ><b>add blog</B> </a><br><br><form action= "" method= "get" style= ' align: "right" ' > <input type= "text" Name= " Keys "> <input type=" Submit "Name=" Subs "></form>


add.php:

<a href= "index.php" ><b>index</b></a><a href= "add.php" ><b>add blog</B> </a>

view.php:

<a href= "index.php" ><b>index</b></a><a href= "add.php" ><b>add blog</B> </a>

edit.php:


<a href= "index.php" ><b>index</b></a><a href= "add.php" ><b>add blog</B> </a>

del.php:

<a href= "index.php" ><b>index</b></a><a href= "add.php" ><b>add blog</B> </a>


The above is the Android programmer to learn PHP development (28)-Simple Blog system-phpstorm content, more relevant content please pay attention to topic.alibabacloud.com (www.php.cn)!

  • 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.