eBlog Site In PHP With Source Code

Project: eBlog Site in PHP with source code

– To download eBlog site project for free (scroll down)

About eBlog Site

eBlog site project is developed using PHP, CSS, and JavaScript. Talking about the project, it has lots of features. A user can post news, blogs, photos. 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 news, from programmes and events navigation tab users get updated about upcoming programmes. There’s a separate tab for blog department where users can easily check all their news and blogs. The viewer is allowed to comment through their Facebook accounts and also a donation page is set for the people who are interested in donating some amounts.

Admin Panel

Admin has full control of the system, he/she can compose news, views all news, add and view exco, create and list events, insert photos into the gallery, sliders. The other main feature is that admin can manage the site like editing  Welcome notes, about pages, programmes page. From the admin panel, he/she can edit the site settings which includes Site Name, Site Title, Site Email, Description, Keywords, Google Analytic Code, Address, Contact details, Facebook Page ID, Twitter Account and Instagram Account. He/she can also add new Admin for the site, delete and list all admins. A responsive dashboard is provided in admin panel for the easy management of the site.

In short, this eblog site in PHP project is just like a WordPress blog site. All the important features that are required for a blog site is set for this project. This simple eblog site in PHP helps a user to post blogs online easily just like using a WordPress site. Design of this project 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). This eblog site in PHP is free to download with source code. For the project demo, have a look at the video below.

Features:

  1. Admin Panel
  2. News update
  3. Gallery
  4. Post News, Blogs
  5. Add Excos
  6. Create New Events
  7. Insert Photos into the gallery, slider
  8. Edit Welcome Message, About, and Programmes page
  9. Edit Site Settings
  10. Add, Delete, View Admins
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 browser and go to URL “http://localhost/phpmyadmin/”
5th Step: Then, click on databases tab
6th Step: Create database naming “native” and then click on import tab
7th Step: Click on browse file and select “native.sql” file which is inside “database” folder
8th Step: Click on go.

After Creating Database,

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

LOGIN DETAILS ARE PROVIDED IN “Readme.txt” FILE INSIDE PROJECT FOLDER

DOWNLOAD EBLOG SITE IN PHP WITH SOURCE CODE: CLICK THE BUTTON BELOW

[quads id=1]


Author: Fabian Ros
4 2 votes
Article Rating
Subscribe
Notify of
guest
72 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
M SHYAM KUMAR
M SHYAM KUMAR
6 years ago

Hey Code Projects , MY NAME IS M SHYAM KUMAR .I DOWNLOADED “E-BLOG WEBSITE IN PHP PROJECT “AND TRIED TO RUN THIS SOUCRE FILES ,I EXACTLY FOLLOWED THE STEPS TO RUN WHICH IS MENTIONED IN THE SITE.IN FINAL STEP ,WHEN I OPENED THE ADMIN PANEL i,e “9th Step: Open a browser and go to URL “http://localhost/native/” THE BROWSER IS GIVING FATAL ERROR “Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:xampphtdocsnativeconnect.php:26 Stack trace: #0 C:xampphtdocsnativeheader.php(9): include() #1 C:xampphtdocsnativeindex.php(1): include(‘C:\xampp\htdocs…’) #2 {main} thrown in C:xampphtdocsnativeconnect.php on line 26” SO ,PLEASE GIVE THE SOLUTION TO THIS PROBLEM ,PLEASE CODE PROJECTS… Read more »

Naseeb Bajracharya
6 years ago
Reply to  M SHYAM KUMAR

then you should configure DB connection in connect.php. Insert your host name, username, and password there!!

Apratim
Apratim
5 years ago
Reply to  M SHYAM KUMAR

How you overcome with this problem

Shehryar
4 years ago
Reply to  M SHYAM KUMAR

simply change mysql_connect() to mysqli_connect(). because mysql_connect() is old version and is no more. do this and your problem will be solved….

rose
rose
6 years ago

i cant write anything on the space provided please help

Billy Amadi
Billy Amadi
5 years ago

I’m getting an error sending a message in the contact us section
kindly assist

Muhammad Abubakar
Muhammad Abubakar
5 years ago

R/sir In “eBlog Site In PHP With Source Code” I imported the database and when i display “localhost/native”, this error is displayed in my browser, ” Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:xampphtdocsnativeconnect.php:26 Stack trace: #0 C:xampphtdocsnativeheader.php(9): include() #1 C:xampphtdocsnativeindex.php(1): include(‘C:\xampp\htdocs…’) #2 {main} thrown in C:xampphtdocsnativeconnect.php on line 26 “.
What is that error and How can i solve this problem,

codeprojects
Editor
5 years ago

just change the mysql_connect() to mysqli_connect() in connect.php file on line 26

Muhammad Amir
Muhammad Amir
4 years ago

change your connection database name where you import sql file

Aditya Bisoi
Aditya Bisoi
5 years ago

Hey, when i open the admin panel it shows only html and no css.What should i do ? Its only a plain website.

codeprojects
Editor
5 years ago
Reply to  Aditya Bisoi

maybe your CSS file for admin panel has been misplaced

Abdulmuiz Zaid
4 years ago
Reply to  Aditya Bisoi

Please how did you open the admin panel

prince
prince
5 years ago

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:xampphtdocsnativeconnect.php:26 Stack trace: #0 C:xampphtdocsnativeheader.php(9): include() #1 C:xampphtdocsnativeindex.php(1): include(‘C:\xampp\htdocs…’) #2 {main} thrown in C:xampphtdocsnativeconnect.php on line 26.

some body help me for resolve….
i already read all comments still error….

Alan
Alan
5 years ago

Warning: mysqli_select_db() expects parameter 1 to be mysqli, string given in C:xampphtdocsnativeconnect.php on line 27

hazel
hazel
5 years ago

when logging in to the admin panel it says ‘local error says something went wrong,enter correct details” when the details are correct

sam
sam
4 years ago

what is this??? how can i solve this problem>? (Warning: mysqli_select_db() expects exactly 2 parameters, 1 given in D:\xampp\htdocs\native\connect.php on line 27)

Saajan
4 years ago

Everyone who got problem with correct setup, just replace the line 24-28 with the code below. It would definitely works

$db = new PDO(“mysql:host=”.$db_host.”;dbname=”.$db_database, $db_user, $db_pass);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$conn = mysqli_connect($db_host, $db_user,$db_pass);
mysqli_select_db($conn, $db_database);
$mysqli = new mysqli;

Jigsa
Jigsa
4 years ago
Reply to  Saajan

Thank you Bro!

$db = new PDO(“mysql:host=”.$db_host.”;dbname=”.$db_database, $db_user, $db_pass);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$conn = mysqli_connect($db_host, $db_user,$db_pass);
mysqli_select_db($conn, $db_database);
$mysqli = new mysqli;

jayshree
jayshree
2 years ago
Reply to  Saajan

Parse error: syntax error, unexpected token “=”, expecting “)” in C:\xampp\htdocs\native\connect.php on line 24

keshu
2 years ago
Reply to  jayshree

same

KAUSHAL
KAUSHAL
4 years ago

Please solve it
Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in C:\xampp\htdocs\native\admin\process_login.php:18 Stack trace: #0 C:\xampp\htdocs\native\admin\process_login.php(22): clean(‘admin’) #1 {main} thrown in C:\xampp\htdocs\native\admin\process_login.php on line 18

robel
robel
4 years ago

thank you

Muhammad Amir
Muhammad Amir
4 years ago

hey code projects, my name is Muhammad Amir i downloaded e-bloag website in php project the web site is
working correctly but the admin site there is some error occure like fatal error undefined mysql_real_escape_string($str); on file login.php line no. 18 so please solve this problem

rishu kumar
rishu kumar
4 years ago

hi sir

Wazen
Wazen
4 years ago

How do i connect to admin site, i have solved the normal site, but cant access the admin site, when ever i tried to login its giving me this error ” Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in C:\xampp\htdocs\Brufit\admin\process_login.php:18 Stack trace: #0 C:\xampp\htdocs\Brufit\admin\process_login.php(22): clean(‘admin’) #1 {main} thrown in C:\xampp\htdocs\Brufit\admin\process_login.php on line 18″

Charles Zeon
Charles Zeon
4 years ago
Reply to  Wazen

am also finding the same problem and people here seem not to be of help

Charles Zeon
Charles Zeon
4 years ago

i downloaded the e blog site and now am having a problem accessing admin panel
i receive this kid of error

Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in C:\xampp\htdocs\native\admin\process_login.php:10 Stack trace: #0 C:\xampp\htdocs\native\admin\process_login.php(14): clean(‘admin’) #1 {main} thrown in C:\xampp\htdocs\native\admin\process_login.php on line 10

codeprojects
Editor
4 years ago
Reply to  Charles Zeon

you have to change mysql_real_escape_string() to mysqli_real_escape_string()

shah
shah
4 years ago
Reply to  codeprojects

Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in C:\xampp\htdocs\native\admin\process_login.php on line 18

Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in C:\xampp\htdocs\native\admin\process_login.php on line 18

Warning: mysqli_query() expects parameter 1 to be mysqli, string given in C:\xampp\htdocs\native\admin\process_login.php on line 40
Query failed

shahroz
shahroz
4 years ago
Reply to  codeprojects

Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in C:\xampp\htdocs\native\admin\process_login.php on line 18

Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in C:\xampp\htdocs\native\admin\process_login.php on line 18

Warning: mysqli_query() expects parameter 1 to be mysqli, string given in C:\xampp\htdocs\native\admin\process_login.php on line 40
Query failed

james
james
4 years ago
Reply to  codeprojects

please send mie the readme.txt cant find it in the project folder

Charles Zeon
Charles Zeon
4 years ago

Warning: mysqli_real_escape_string() expects exactly 2 parameters, 0 given in C:\xampp\htdocs\native\admin\process_login.php on line 9

Warning: mysqli_real_escape_string() expects exactly 2 parameters, 0 given in C:\xampp\htdocs\native\admin\process_login.php on line 9

Warning: mysqli_query() expects parameter 1 to be mysqli, string given in C:\xampp\htdocs\native\admin\process_login.php on line 26
Query failed

what can i do to solve this problem

Charles Zeon
Charles Zeon
4 years ago

Warning: mysqli_real_escape_string() expects exactly 2 parameters, 0 given in C:\xampp\htdocs\native\admin\process_login.php on line 9

Warning: mysqli_real_escape_string() expects exactly 2 parameters, 0 given in C:\xampp\htdocs\native\admin\process_login.php on line 9

Warning: mysqli_query() expects parameter 1 to be mysqli, string given in C:\xampp\htdocs\native\admin\process_login.php on line 26
Query failed

subhan
subhan
4 years ago

Notice: Undefined variable: conn in C:\xampp\htdocs\native\admin\process_login.php on line 18

Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in C:\xampp\htdocs\native\admin\process_login.php on line 18

Notice: Undefined variable: conn in C:\xampp\htdocs\native\admin\process_login.php on line 18

Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in C:\xampp\htdocs\native\admin\process_login.php on line 18

Warning: mysqli_query() expects parameter 1 to be mysqli, string given in C:\xampp\htdocs\native\admin\process_login.php on line 41
Query failed

subhan
subhan
4 years ago

please solve my problem

shahroz
shahroz
4 years ago

Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in C:\xampp\htdocs\native\admin\process_login.php on line 18

Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in C:\xampp\htdocs\native\admin\process_login.php on line 18

Warning: mysqli_query() expects parameter 1 to be mysqli, string given in C:\xampp\htdocs\native\admin\process_login.php on line 40
Query failed

tanisha
4 years ago

Warning: mysqli_select_db() expects exactly 2 parameters, 1 given in C:\xampp\htdocs\native\connect.php on line 27

Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in C:\xampp\htdocs\native\admin\process_login.php on line 18

Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in C:\xampp\htdocs\native\admin\process_login.php on line 18

Warning: mysqli_query() expects parameter 1 to be mysqli, string given in C:\xampp\htdocs\native\admin\process_login.php on line 40
Query failed

what should i do now

Jubayer Hossain
4 years ago

after adding this >>>mysqli_connect()
I got>>>
Warning: mysqli_connect(): (HY000/1045): Access denied for user ”@’localhost’ (using password: NO) in C:\xampp\htdocs\native\connect.php on line 26

Fatal error: Uncaught Error: Function name must be a string in C:\xampp\htdocs\native\connect.php:26 Stack trace: #0 C:\xampp\htdocs\native\header.php(9): include() #1 C:\xampp\htdocs\native\index.php(1): include(‘C:\\xampp\\htdocs…’) #2 {main} thrown in C:\xampp\htdocs\native\connect.php on line 26

justus
justus
4 years ago

Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in C:\xampp\htdocs\dashboard\native\admin\process_login.php on line 18

Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in C:\xampp\htdocs\dashboard\native\admin\process_login.php on line 18

Warning: mysqli_query() expects parameter 1 to be mysqli, string given in C:\xampp\htdocs\dashboard\native\admin\process_login.php on line 40
Query failed

kindy solve this anyone who can do it, it’s a nice project

@code-projectsPersonnel

Abdulmuiz Zaid
4 years ago

This project is a really wonderful one. It would have been a great work If only these encountered problems can be solved by anyone. Please if you can resolve this, send the codes let’s see, we really need it.

@code-projects.org

S.saha
S.saha
4 years ago

Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in D:\Xampp\htdocs\art_are_you\eBlog site PHP\native\admin\process_login.php on line 12

Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in D:\Xampp\htdocs\art_are_you\eBlog site PHP\native\admin\process_login.php on line 12

Warning: mysqli_query() expects parameter 1 to be mysqli, string given in D:\Xampp\htdocs\art_are_you\eBlog site PHP\native\admin\process_login.php on line 34
Query failed

Jigsa
Jigsa
4 years ago

Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in C:\wamp64\www\eBlog site PHP\native\admin\process_login.php on line 18
( ! ) Error: Call to undefined function mysql_real_escape_string() in C:\wamp64\www\eBlog site PHP\native\admin\process_login.php on line 18

Raffa
3 years ago

maximum-asbj.000webhostapp.com saat ini tidak dapat menangani permintaan ini.
HTTP ERROR 500

Myself
3 years ago

this is nice project, but it is a little bit outdated, using php/mysql depricated functions
every function that is mysql should be now mysqli, and i is for improved

ramsey david
ramsey david
3 years ago

kindly, anyone who solved the admin panel login issues, it has some errors i was not able to fix. Its a nice project

Nick
Nick
3 years ago

Can you help me with this error, when I’ve changed the code to mysqli() on process_login.php in the admin, it doesn’t work
watch this error please:

Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in C:\xampp\htdocs\native\admin\process_login.php on line 18

Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in C:\xampp\htdocs\native\admin\process_login.php on line 18

Warning: mysqli_query() expects parameter 1 to be mysqli, string given in C:\xampp\htdocs\native\admin\process_login.php on line 40
Query failed

Vijay
3 years ago

Hi, I have downloaded and tested in Wamp server. While post a comment it asking for facebook login credentials to post the comments. In related page “event-detail.php” it shows the notification “. With regards that I have logged in
https://www.addthis.com/ but I didn’t found any options to customize. Is it any individual coding available with out using tools from addthis.com? If so please provide some solutions. Thanks.

devDavmen
3 years ago

Thank you https://code-projects.org/ ✨✔✔✔✔✔✔✔✔✔✔✔✔✨ ✔ OVER HERE! ✔ ✨✔✔✔✔✔✔✔✔✔✔✔✔✨ ✅✅ if u find any errors relating to connect.php, replace all the code in there with this code setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); global $conn; $conn = mysqli_connect($db_host, $db_user,$db_pass); mysqli_select_db($conn, $db_database); $mysqli = new mysqli; ## Problem child don’t touch! ## #$db = new PDO(“mysql:host=”.$db_host.”;dbname=”.$db_database, $db_user, $db_pass); #$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); #$conn = mysql_connect($db_host, $db_user,$db_pass); #mysql_select_db($db_database); #$mysqli = new mysqli; class App { public static function message($type,$message,$code=”){ if($type==’error’){ return ‘ × ‘.$message.’ ‘.$code.’. ‘; }else{ return ‘ × ‘.$message.’ ‘.$code.’. ‘; } } } function get($val){ return @$_GET[$val]; } ✅✅ Also, if you find any errors… Read more »

Hans van Schooten
Hans van Schooten
1 year ago
Reply to  devDavmen

I get to query failed and what is also strange is that when going to the admin part I get some things to see even before I login

sahil
sahil
3 years ago

sir muje error aa rahi he please solve this error

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\EBLOG_SITE_IN_PHP_WITH_SOURCE_CODE (2)\eBlog site PHP\native\connect.php:20 Stack trace: #0 C:\xampp\htdocs\EBLOG_SITE_IN_PHP_WITH_SOURCE_CODE (2)\eBlog site PHP\native\header.php(9): include() #1 C:\xampp\htdocs\EBLOG_SITE_IN_PHP_WITH_SOURCE_CODE (2)\eBlog site PHP\native\index.php(1): include(‘C:\\xampp\\htdocs…’) #2 {main} thrown in C:\xampp\htdocs\EBLOG_SITE_IN_PHP_WITH_SOURCE_CODE (2)\eBlog site PHP\native\connect.php on line 20

STEVE NYAH GONPEIN JR
STEVE NYAH GONPEIN JR
3 years ago

Please can anyone help me solve the above problems?

Warning: Undefined array key “message” in C:\xampp\htdocs\native\contact-form-handler.php on line 16

C:\xampp\htdocs\native\header.php on line 28

Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in C:\xampp\htdocs\native\admin\process_login.php:15 Stack trace: #0 C:\xampp\htdocs\native\admin\process_login.php(22): clean(‘admin’) #1 {main} thrown in C:\xampp\htdocs\native\admin\process_login.php on line 15

paul
paul
2 years ago

have you been able to solve it?

jayshree
jayshree
2 years ago

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\native\connect.php:26 Stack trace: #0 C:\xampp\htdocs\native\header.php(9): include() #1 C:\xampp\htdocs\native\index.php(1): include(‘C:\\xampp\\htdocs…’) #2 {main} thrown in C:\xampp\htdocs\native\connect.php on line 26

hhhhhhhhhhh
hhhhhhhhhhh
2 years ago

Can someone help, every time i try to update something, like post new news, the data cannot enter database.

O.j Micheal
2 years ago

In actuality, you won’t be able to understand if you don’t know how to code. Only backend developers familiar with PHP MySQL will be able to handle it.

dark
dark
2 years ago

Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in C:\xampp\htdocs\native\admin\process_login.php:18 Stack trace: #0 C:\xampp\htdocs\native\admin\process_login.php(22): clean(‘Username’) #1 {main} thrown in C:\xampp\htdocs\native\admin\process_login.php on line 18

whattt problem please Fix . 

paul
paul
2 years ago

Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in C:\xampp\htdocs\native\admin\process_login.php:8 Stack trace: #0 C:\xampp\htdocs\native\admin\process_login.php(15): clean(‘admin’) #1 {main} thrown in C:\xampp\htdocs\native\admin\process_login.php on line 8

Shahed Ahmed
Shahed Ahmed
1 year ago

FAILED TO CONNECT TO MYSQL: ACCESS DENIED FOR USER