Dynamic Blog with PHP and MySQL

In this article, we going to see how to create a complete dynamic blog with PHP and MySQL. Like WordPress application here you can see the dynamic blog with PHP and MySQL. Benefits of this you can add, edit, update, publish and delete articles to make them available in the public view. This dynamic blog helps you lot by easy handling and SEO friendly URL and pages. You have the option to create separate categories which would you like, So the users and public can browse the articles through categories.
The advantage of this you have a separate Dashboard to maintaining your articles and user management. In the dashboard, you have a list of articles from there you can edit or delete. For user management, admin can create multiple uses for login dashboard and also there is edit and delete option for user management.
Dynamic Blog Structure
— Home Page
— Inner Page
— Category Page
— Archives Page
Dashboard
— Home Page
— Posts Page
— All Post Page
— Add Post Page
— Categories Page
— Categories Page
— Add New Categories Page
— Users Page
— Users Page
— Add User Page
HTACCESS
.htaccess File
.htaccess Update
If you finished all the setup then you need to update your .htaccess file. Add the following command to rewrite rule c- for categories and a- for archives this help to view the categories and archives posts. For viewing post, you need to add Rewrite condition.
1 2 3 4 5 6 7 8 9 |
RewriteEngine On RewriteBase /product/blog/ RewriteRule ^c-(.*)$ catpost.php?id=$1 [L] RewriteRule ^a-(.*)-(.*)$ archives.php?month=$1&year=$2 [L] RewriteCond %{REQUEST_FILENAME} !-d [NC] RewriteCond %{REQUEST_FILENAME} !-f [NC] RewriteRule ^(.*)$ viewpost.php?id=$1 [QSA,L] |
Username: [email protected]
Password: 12345
Mraj
Creative Designer & Developer specialist by the spirit and a loving blogger by thoughts. If you have any questions let me drop an email with the article name to the following email id: [email protected]