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)!