Responsive Blog Site In PHP With Source Code

By | December 10, 2023

Project: Responsive Blog Site in PHP with source code

– To download Responsive Blog Site project for free (scroll down)

About Project

Responsive Blog site project is developed using PHP, CSS, and JavaScript. Talking about the project, it has lots of features. A user can post blogs under the different category, add editors choice, links and view admin stats. This project is a complete blogging site for the users where different categories are divided for the users. It contains a homepage from where users can check the latest blogs. The viewer is allowed to comment through their Facebook accounts.

Admin Panel

Admin has full control of the system, he/she can add blogs, view all blogs, add and view categories, view published blogs, add and view web details, social links, add editors choice and view admin stats. The other main feature is that it also contains an admin area from where he/she can check latest site updates and keep maintenance mode. While adding new blog the admin has to provide a title, select category, insert tags, content, photos, date, author, and select status as a draft or publish. From the admin panel, he/she can easily customize the entire website. A responsive dashboard is provided in the admin panel for the easy management of the site.

In short, this responsive blog site in PHP project is similar to a WordPress blog site. All the important features that are required for a blogging site is set for this project. This responsive blog site in PHP helps a user to post blogs online easily just like using a WordPress. Design of this project’s landing page is pretty simple and responsive so that user won’t find it difficult to understand, use and navigate.

To run this project you must have installed virtual server i.e XAMPP on your pc (for Windows). Responsive blog site in PHP is free to download with source code. Use for educational purpose only! For the project demo, have a look at the image slider below.


  1. Admin Panel
  2. Post Blogs
  3. Blog categories
  4. Drafts
  5. Editor’s choice
  6. Social links
  7. Admin stats
How To Run??

After Starting Apache and MySQL in XAMPP, follow the following steps

1st Step: Extract file
2nd Step: Copy main project folder
3rd Step: Paste in xampp/htdocs/

Now Connecting Database

4th Step: Open a browser and go to URL “http://localhost/phpmyadmin/”
5th Step: Then, click on databases tab
6th Step: Create database naming “blog_admin_db” and then click on import tab
7th Step: Click on browse file and select “blog_admin_db.sql” file which is inside “databasefile” folder
8th Step: Click on go.

After Creating Database,

9th Step: Open a browser and go to URL “http://localhost/resblog/”
For Admin Panel
Final Step: Go To URL “http://localhost/resblog/blogadmin/”
Provide the username and password which is provided inside the “Readme.txt” file.


Project Demo


[quads id=1]

204 thoughts on “Responsive Blog Site In PHP With Source Code

  1. Tane

    i use a username password mysql this the error i get when trying to setup SQLSTATE[HY000] [1045] Access denied for user ‘root’@’localhost’ (using password: NO)
    Notice: Undefined index: db in C:xampphtdocsbusblogcounter.php on line 6

    Fatal error: Uncaught Error: Call to a member function prepare() on null in C:xampphtdocsbusblogcounter.php:6 Stack trace: #0 C:xampphtdocsbusblogcounter.php(17): checkPageName(‘The subtle art …’) #1 C:xampphtdocsbusblogsingle.php(45): updateCounter(‘The subtle art …’) #2 {main} thrown in C:xampphtdocsbusblogcounter.php on line 6

  2. siva

    Hi. I use your project for my project report. I have to understand this project source code fully. so please, help me for solving my problem.

  3. darioalvario

    hello am using this code pefectly check out my site please i need to know how i can make the social like share post and facebook liker. the social links will only open,,, when you change it to your facebook page an error occours

  4. Praveen

    how to change the Editor, For.Ex. I want to use the summernote editor for content divison, in such case how can i change it from default editor to summer note editor.

  5. praveen995

    How to change the default editor to my editor, such as Sublime editor for content in creating new post

  6. Chaitanya

    bro what about the dfd and er diagram for the project can you share it please??
    i need it for my college project

  7. kerry

    Hi – I really like your Blog code – quite awesome but I would like to make a couple of suggestions:-
    1 – Add edit image would be so much better if it had a browse function
    2 – same for links
    3 – I am finding impossible to actually display html code examples on the page

    Kind regards

  8. vishal

    I loved your project, but one problem is coming up, can you please help to solve that.
    Can you please mention where is the connection files for 4 bootstrap box inside the dashboard. It will be really helpful for me.

    1. vishal

      Thanks for your project, I will a lot from it,
      Now i had discovered the file, so don’t need to mention 🙂

  9. vishal manhas

    please give the report and ppt of blog site project

    1. Fabian Ros Post author

      we don’t have the report
      you can download the project from our site, there’s a green download button

          1. fernando

            i cant change the banner picture, ive trying to find in header.php and banner.php but still not found yet.

  10. sajilo chat

    Thank you so much for such a nice project. Can you give me database source code documentation (full documentation or may be summery of database DFD) please.

    1. Fabian Ros Post author

      source code is provided on our site
      you can download it
      but we do not have any documentation or report

      1. sajilo chat

        well i make the report my self but i have some problem like …..commenting and notification in admin panel can you tell me how comments are stored because i didn’t see any table that contains the comments and same for notification where it is stored and how it is managed any idea please ?


    i have just discovered that the pagination part does not work and even after checking other peoples sites that used this theme who also claimed that it works perfectly yes it does expect one problem the pagination does not work


    when do you hope to rectify the issue of pagination

  13. abubakar

    please send me this project documentation in 50 pages i love your work

  14. Saran

    hi …i have changed the site to maintenance mode i have no idea in php can anyone tell how to come back to normal mode

  15. Moralist Festus

    Thanks for this. but am facing a problem. How can visitors comment on the blog posts.? no comment and reply section. Pls can you update it, I really need that. ??

  16. Nayeem Hasan

    i can’t link this project to my project.. it works fine in localhost , but after uploaded to cpanel,it is showing 404 error

  17. krishan

    hi, can you guys add ane more column in “blog” table name as “rating”. i really need this.

  18. Shubham Gupta

    Hello sir I have a error in blog admin page
    ProxySQL Error access denied for user ‘root’
    @2a02bad (using password: no)
    Please help me sir

  19. Siddharth Kumar Mishra

    we got this problem please solve
    Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in C:\wamp\www\Responsive-Blog-Site-PHP\Responsive Blog Site PHP\resblog\counter.php on line 7

    1. codeprojects

      error is saying you have to change ‘[‘ to ‘)’ in counter.php on line 7

  20. kamal

    hi sir can you please give me your purchased app ginni software.
    it will help me a lot;
    actually i am making an custom website that’s why i need that.
    thanks in advance.

  21. Turbo

    FIX ERROR “SQLSTATE[HY000] [1045] Access denied for user ‘root’@’localhost’ (using password: NO)”
    mysql –> my.ini
    ### after
    ### add

  22. Hitheswar R

    FAILED TO CONNECT TO MYSQL: ACCESS DENIED FOR USER ‘EPIZ_25005480 ‘@’’ (USING PASSWORD: YES) … How to solve this issue kindly tel me pls

  23. abhisat

    Hi, I am getting this error while trying to post a new blog:”Try chmoding the upload folder ‘./images/’ to 777″

    1. Pawan Rai

      when try to click on and select the category sector page show 1 only


      also facing issue in blogadmin page

  24. Shoaib

    In this, ID is coming in the link of every blog post, whereas the name of the post should be included in the link.


    Warning: mysqli_connect(): (HY000/1045): Access denied for user ‘hitechsh_my’@’localhost’ (using password: YES) in

    access denied

  26. Sidhartha

    I want to add hindi font in my blog please suggest me with the process(code) and the location where I need to put the code.

  27. Ricardo


    I liked the project.
    Local the project works well, but when I send it to the server I can’t access the administrative area. The login form does not appear.

    1. Imman

      I thought it’s my end only….This template is useless without the access to admin page

  28. cedric

    hi please how to solve the problem of encoding special characters example accents on letters. when I post a blog with the letters containing accents it codes these letters

  29. kelvin

    hello great people the web is doing well , but the sign in and register part throughs an error

    Access denied for user ‘root’@’localhost’ (using password: NO)

    how do i solve this

  30. kelvin

    hello great people the web is doing well , but the sign in and register part throughs an error

    Access denied for user ‘root’@’localhost’ (using password: NO)

    how do i solve this

    1. bright

      if you are having an error similar to Access denied for user ‘root’@’localhost’ (using password: NO) after launching in c panel, all you gotta do is to find the following folders : db, config, config.bak, conn, db_connect, then in the php code replace local host with your domain name, root with database username, and then in the space of password which is empty put in your host password

  31. bright

    if you are having an error similar to Access denied for user ‘root’@’localhost’ (using password: NO) after launching in c panel, all you gotta do is to find the following folders : db, config, config.bak, conn, db_connect, then in the php code replace local host with your domain name, root with database username, and then in the space of password which is empty put in your host password

  32. Arpit

    Locally the project runs fine, but when I send it to the server I can’t access the administrative area. The login form does not even can i resolve this?

  33. Ankit

    I like your work and need help in setup of complete project. You can connect me on my mail id will be looking to reward you too.

  34. miracle

    i love this keep it up Sir ……but i wish to add more to the category drop down which i have been trying but giving me some difficulties i will be happy if you can help me out Sir
    whatsapp +2347067910178

    1. sgboy17

      I have been faced with the issue, too. So, have you had any method to deal with it right now? Thank you in advance!

  35. Emmanrl Graphics

    Thank you, works great but please can I use for my blog hope it is not copyrighted or licensed.

  36. Kevin

    Hello ! My name is Kevin. I have a problem, especially with the accents. I am in a French speaking country. everything goes correctly, except the accents. if you can help me, please.

  37. Gbamila Olalekan

    How can I get nice permalink for the blog just like WordPress so that Google can index the post

  38. Alex

    Local the project works well, but when I send it to the server I can’t access the administrative area. The login form does not appear.
    Anyone can help me?

  39. Ajeetpal singh

    Getting the below error hen viewing a blog – i.e. single.php dont know how to resolve this or why this is coming. rest all I have set up. Is this a bug in your code?

    Can u help guide me to resolve this issue
    Below message comes at the top of the page (although the page loads below properly.

    [removed](function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); = id; js.src = ‘’; fjs[removed].insertBefore(js, fjs); }(document, ‘script’, ‘facebook-jssdk’));[removed] [removed][removed]

  40. Ajeetpal singh

    Also facing issue with fetching categories while posting blog. it is not fetching the categories.
    Can u help resolve this issue.

  41. A Singh

    I have installed your code and below are 2 issues I am faciing.

    Below is the error message I am on top of the page when you view the blog. other content on the page loads properly. here is the link of the blog.
    [removed](function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); = id; js.src = ‘’; fjs[removed].insertBefore(js, fjs); }(document, ‘script’, ‘facebook-jssdk’));[removed] [removed][removed]

    2. while posting blog, categories are not getting fetched. It does not load the categories.

    Can u help resolve the above 2 queries.

  42. PuffENIS

    Hey I’m creating a new blog and i’m using your template but when i’m longing in to admin panel (After creating db and stuff) I’m just getting a blank page no admin panel I think something is wrong with it. Will you Please help me fix it like pretty Please.

  43. Godwill

    Hello, i downloaded your code and it’s amazing. I have just one problem at the level of signup. When i click it takes me to blogadmin/membership_signup.php but only displays “signup disabled by admin”. How do i enable signup please?


    Honorable Sir / Madam,
    I used your blogging website which is very effective and efficient but I am facing problem while posting Blog in Hindi language and Font .
    Please tell me Solution.
    I have need of your blog website to development of our knowledge and Skills.

    Thanks and Regards

  45. Zen

    Hey, I am having a problem can someone help me please,
    When i click on sign in button or register button it redirects to index.php but nothing happens then it just stucks…

  46. AppSquadz Software

    Will be waiting for your next post!!! You have mentioned very useful points in the blog. Reach a renowned mobile app development company for trending ideas and strategies.

  47. Pratik

    Hey Your project is amazing
    “Couldn’t save the uploaded file. Try chmod in the upload folder ‘./images/’ to 777.”
    getting this error while uploading image,
    please tell me solution

  48. PRATIK

    I get this error :
    “Couldn’t save the uploaded file. Try chmoding the upload folder ‘./images/’ to 777.”
    while uploading image, please help me to solve this.

  49. David Campbell

    In this modern age, we know how important is solar panel. Solar panels playing a big role to complete daily electricity needs at a low cost. Now solar panels use industrially. Many big companies use solar panels to complete their 50% of electricity needs.

    Unrivaled Solar’s high-quality solar panels are built with the best materials and craftsmanship, which is why they are backed by a 25-year manufacturer warranty. Each of these unrivaled panels is made from tempered glass and monocrystalline cells that generate up to 360-watts of electricity every hour that they receive sunlight. Whether you want to save money on your utility bills or contribute to a cleaner environment, these solar panels can help you do it all.

  50. tony

    So good web, but I dont know how to fix it error the CSS in web

  51. ashu

    hey project is working good but on live server i am unable to login to the admin panel even i changes all the database connection. how to i fix it

  52. Deepu

    Mariadb Error: “You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘ile” at line 1″

    semicolon is not accepting in title and text area. i tried to edit the code using “mysqli_real_escape_string” function. but i failed to update the code. can you please help me..

  53. ashok

    on xamp server it working fine but after uploading on live server i am unable to login in admin panel or not able to sign up even i changed all database connection file

  54. Zack

    Hello,,,, ADMIN page or the login/sign up page displays blank, what could be the problem and how can one resolve that?

  55. Download Speed Test

    If you have a teenager at home with a gaming console, downloading a new game on a slow connection can take tens of hours where a faster connection would drastically reduce that number. Or if you use web services like Dropbox to share family photos, a faster upload speed would mean being able to share those pictures sooner. You can take Download Speed Test.


    APTRON offers both Online and Offline PHP training in Noida in which you learn various modules include PHP as language, MYSQL as a database, training on CMS WordPress, Framework Laravel, Payment gateway integration as essential parts of web designing and web development course in PHP.

  57. Collins

    The blog sign in and register is not working…. What might be the problem, I can’t figure out the error report

  58. Ndem

    Pls am having an issues pls my admin page is just blank how do I go about it

  59. Godwill

    Hello, thanks for this source code.
    I just have one problem when i launch it on my phone using localhost it works perfectly but on my pc with xampp, i only get a blank page when i click “sign in”. Help please

  60. Asuka

    Thanks for sharing this process however i have an app idea that i want to build from php developer who know also css for native apps.

  61. Vaibhav

    admin and register buttons showing blank pages, can u help me with this problem

  62. Vaibhav

    sign in and register buttons showing blank pages, can u help me with this problem asap, thanks

  63. Tripple Delta

    Nice project. Fixed a lot of things like pagination, SEO friendly URL, limit bandwith for the images etc.
    But still looking how to fix the menu in the admin area. Dropdown menu like messages, alerts or user seems hardcoded.

  64. Ronin

    for issue blank page signin
    u need to use XAMPP for Windows version 7.3.28

  65. mobile app development in Delhi

    Mobile app development is an act by which applications are built for mobile devices. These applications are designed to run devices such as smartphones, tablets, or computers. Some of these applications are pre-installed in devices during their manufacturing process. For mobile application building, you are required to hire professionals because application building is not an easy job you need proper knowledge about coding, front-end, back-end, etc.

  66. Sonu

    Hey iam unable to get the membership signup page. It is not showing any display when iam going on the page

  67. Harryy

    Thank you for this informative blog. We offer <a href=””>Web Development Services</a>, Mobile App Development, Software Development, Internet Of Things, and Digital Marketing. Your website presents your company’s status and character — Invictus Solutions will help you improve your image.

  68. irfan

    hi all,
    after clicking login button it shows blank page !!! why this is happening?

  69. bilhack

    i have downloaded your work but i could not login or register….please what should i do thanks

  70. vaishnavi

    hii the project is good but i am facing one difficulty in registering or signing in, the moment i click on sign in a blank screen appears please resolve this issue ..

  71. darsh patel

    after clicking on signin button or register button, it is showing blank page

  72. linmannix

    Hi! May I ask how many files that connect my database especially when I have to change default mysql admin user? Thank you a lot.

  73. bhagyashri

    I am unable to open admin panel. Getting error on console. Please share working zip so i can able to open admin panel

  74. Jonathan


  75. Dancinglyric

    Hello. I love your project but I whenevre I open https:/resblog/blogadmin. It shows a blank page. I don’t know what the problem is

  76. browny

    hi i tried using the source code but anytime i try to access the admin page and register page it keeps showing a blank page somebody please help

  77. Morry

    not seing anything under blog admin/ all pages are blankl please help me to this

  78. Jossy Bekele Terefe

    can’t be able to find login page on “http://localhost/resblog/blogadmin/” it displays blank page please help

  79. geed

    hello please when I click the signup and singin buttons I get a blank page

  80. Shahed Ahmed

    I have setup everything successfully & thank you for your script.
    I just need to use Bangla font in my website but its not supported in your script. After adding Bangla font, it is showing like ??????. Can you please suggest me, how to solved this issues !

  81. Sudhanshu Shekhar

    Hii..when I try to open the login or register page, its giving me a blank screen, also, no error in the console.

  82. Kartheeka

    Hey, Hi. Myself Kartheeka. Your post regarding Machine Learning Project Ideas is very unique but when I’m in B.Tech Final Year, i searched so many institute to make my idea into reality. Really Takeoff Projects gave project assistance to complete my Final Year Projects. Thank you, have a great day. Better check Takeoff Website, maybe it will help you a lot i think.

  83. Beatrics

    Hello sir, i want to ask a question. When i open the website in localhost, it seems normally but why i can’t access the login page in website sir. When i go to localhost/resblog/index.php or localhost/resblog/blogadmin there was a blank page. Can you help me sir to solve this problem

  84. zaina

    I am Shaina Arora I want this code proper installation who can help me if i go with you as a call girl

  85. Samuel Akande

    The register page is blank. Any page connected to admin is showing blank. Pls can you help with this?

  86. Roberto Moreno

    I can’t open any page inside Blogadmin folder… There’s a lot of blank pages. I’m using Wampp in local machine. In others folders, it’s all ok.

  87. Matthew Divine

    I have a issue with the admin panel it is just showing a blank white page

  88. samuel

    I used this as well everything was going on well until my sign up and login page refused to display. it is showing a blank page what should i do


Leave a Reply

Your email address will not be published. Required fields are marked *