Full source code available at: http://www.johnmorrisonline.com/lesson/how-to-create-a-content-management-system/ In this lesson, you’ll learn how to create a …
Original source
Full source code available at: http://www.johnmorrisonline.com/lesson/how-to-create-a-content-management-system/ In this lesson, you’ll learn how to create a …
Original source
50 responses to “How to Create a Content Management System (CMS) Using PHP”
john can you send me the codings of that social network u've done
Wow super ad
CMS Web Development Services india
CRM Source Software Company
sanjaytechnologies.org
sorry but you really suck, put up your debugging on and u will see what exceptions it will throw…
can u help me my project in how to develop personal dairy managment system in this user can keep their personal record like a what they do in a diray
user can records in diray life any others tasks.
plz help me for this topic video.
Thanks for the clear explanation, but is it safe to access global variable $db inside of a class 59:32 ? (what should i do on a real server – pass as a parameter?).
Hi, myself Vinay Singh I am the website developer i have 4 year experience
I can make Good Responsive website
Skype: vinaysingh43
Dude you suck. You create a video that is 1 hr & 44 mins, but still no website? Only a title 1, 2, & 3 output with a little content? That is pathetic. Where is the blog? You should have been able to build the whole damn thing in that amount of time talking. You talk too much, but not enough action. You need to utilize your time better or make it more efficient.
why do you all have you teaching contents so that one cannot see what you are doing. That is not teaching, that's hiding
Thanks a lot is not enough compared to what I've learned from this tutorial.. but thank you man! it's exactly what i need for my for my work in progress… hopefully you create more especially ruby on rails…
FUCK YOU!
Thank you for a very informative and easy to follow tutorial!
I was wondering how I can redirect a user to the start page (index.php) showing all results if the user tries to enter a post ID (?p=XX) that does not exist in the database? When I try to enter a non-existent id, the page doesn't display anything at all…
If I'm not mistaking, you didn't address this issue in your tutorial.
atom editor is good to write php code
Great
Thank you so much for this, awesome work!
Just one question, for some reason I can only upload a certain amount of text within the "content" portion. I have it set to longtext in database but if I go over a couple sentences it just won't do anything. Any advice?
*EDIT*
I found that if the text had an apostrophe it wouldn't insert the data.
Thank you so much for your great tutorial sir on creating CMS using PHP.
I followed your tutorial and created DB table in Mysql then I downloaded your code and tried running it but it is just showing error as :
Notice:Undefined variable: results in G:wampwwwc-manincludesclass-db.php on line 28 and
Warning:Invalid argument supplied for foreach() in G:wampwwwc-manindex.php on line 30
I am new to PHP, can you help me please to solve it?. Please do.
Thank you so much in advance!!
hi! is this like a Web File Management System? cos' we need it for our thesis thanks!
You have to use a monitor with black font and a white background, not some bogus LINUX or MaC editor
Great tutorial.
Taught me alot!
Don't know if its because I'm using IIS to host php but I had to use $post->id instead of $post->ID
Is it something to do with IIS being case sensitive???
Hi sir i have a question for you please don't mind i hope you will be help me my question is how can i show related news from posting single news using by cat id please if anybody know reply with my comment.
Enjoying this tutorial a lot! If anyone is having trouble with the function__construct() returning an error (my problem was with class_db.php and returning a parse error), I looked around online and noticed a space between function __construct, which solved the problem. Perhaps a small change with PHP7? I don't know, but that solved my parse error.
itsssssss to much helpfull thanks…but can you told me how to make cms page for hotel manager.
Hey. Could you tell me what editor are you using? I kind of like it 🙂
super
Hi, I hope you will answer. I have to ask you, since it's confusing to me, do I really need to create CMS or is it enough to manage my website through my mysql database? Do I understand a CSM thing corectly when saying that CSM just simplify managing mysql database? I'm almost able to create an interactive website but feel like CMS thing (administration pages) are little bit too much.
global 😀 😀 😀
Sir from 5 days i am struggling in making quiz application using php mysql.
Can you make a project tutorial for building quiz application using php mysql step by step with planning. Because i am failing in this step.
Thanks
Should've shown your address bar anyway, but still a great tutorial.
Can I ask you a question ? I'm new to web development . I want to create a website that has to change its content more often. Where i get started . Is joomla a better option? or Doing from scratch with HTML /PHP better? pls help
I am just 16 and I have big dreams. I am looking forward to improve my skills in web development.
great tutorial!
Someday you will be famous xD!
Would it be more benefiting to make a custom cms if the project is based around social media or networking? I'm working on a project now and most recommended for the extensive features to scrap the idea of a WordPress per say and go the custom cms route? Thoughts ?
hey John, now i've looked at alot of your tuts and u gotta quit playin with us that need you to complete the mission of helping us develop our own websites. slow it down my dude an follow what i'm saying. i'm new to this thing of websites. i am a Chicago music Producer as well as an Artist with a company that creates, distributes, and a host of other creations by me. look my dude, i have music that i, myself want to put out for sale on my own no wordpress etc website. i am hosting my own website coded strictly by my hands. i need if you can to get a tutorial that will help me from start to finish w/o the need of purchasing a hosting of any company than my own computer/server. i have my own domain and i wanna sell my music. i want all my creations off any other site but my own can you please help or what?. i do not want to purchase your hosting or precoded template. i wanna follow the steps and make my own adjustments. just please give me the basics of setting up my server, ftp, and helping me get my website up and running online, i'd be more than grateful if you should help me help us here in Chicago with this R.U.F.F.I.A.N Music thnx
Hey John.
Thank you sooooo much for this awsome tutorial. This is exactly what i was searching since last year (simplest oop usage) but youtube was blocked here in pakistan 🙁 (just opened now)
i haven't tried oop style before but after watching this video i am loving it 🙂
simple + awsome + understandable. Going to watch all your videos now.
God Bless you 🙂
Спасибо | thanks | рахмет !
hi John i'm beginner what is this software name?
thnx
This is my code up to the 55 minute mark. It is identical to yours (except the commented out part that I hoped would fix the errors that keep popping up):
Notice: Undefined property: DB::$connection in C:xampphtdocsmy-cmsincludesclass-db.php on line 16
Fatal error: Call to a member function query() on null in C:xampphtdocsmy-cmsincludesclass-db.php on line 23
<?php
if (!class_exists('DB')){
class DB {
public function _constuct(){
$mysqli = new mysqli('locahost', 'root', '', 'cman');
if ($mysqli->connect_errno){
printf("Connect Failed %sn", $mysqli->connect_error);
exit();
}
$this->connection = $mysqli;
}
public function insert(){
$mysqli = $this->connection;
$query = "
INSERT INTO (post_title, post_content, post_category)
VALUES ('title', 'content', 'category')
";
$result = $mysqli->query($query);
//$result = $this->connection->query($query);
return $result;
}
}
}
?>
What am I missing????
Hello, this tutorial is pretty awesome…. but my system is displaying the error below
Parse error: syntax error, unexpected 'function_construct (T_STRING), expecting variable (T_VARIABLE) in C:xampphtdocscmsincludesclassdb.php on line 4 Kindly assit
( ! ) Fatal error: Class 'DB' not found in /var/www/html/cms/admin/post_edit.php on line 5
thanks for the tutorial this is my first experience about the php programming ,and really enjoyed.
The code likes good but i've got a problem. So , when i go to the page "Updates News", the code show all contents in Data correct…
But show everything about that content.
So, i want that the code on the Page Updates_News.php show a little of the content. Then, when u click on the content (CSS lalalalala) he go to Update_News.php?=1 and show all…
How can i do it?
I watched this video by skipping >.< so i don't know if it was mentioned. but I would highly recommend two new tables for a blog CMS.
category (id, category) and postcategory (id, postId, categoryId)
category containing a list of the available categories.
postcategory linking the id for both post and category.
It wouldn't take much longer than serializing and you have a more powerful and robust method for categorizing.
just noticed you showing the WordPress meta table at the end 🙂
Nice one John i watch and completed my very own cms but i have some questions,
1. is there a way to make the post url display the page title not the id
2. what about the categories, how do i call them seeing they are indexed with a special type of array.
please if you are on quora drop your link i would love to follow you.
small loan of a million dollars
if you increase the font size that would be very helpful, And thanks for this great tutorial
What text editor you used?
Very good video for learning the basics of a CMS. I had lots of hang ups an errors, but worked though them and made it to the end! Thank you!
This tutorial is the best! It rules! Its funny with php if we know what we need, what we want, what we do, what is our purpose! We Shall success!
parse error: syntax error, unexpected 'endforeach' (T_ENDFOREACH) in /var/www/html/c-man/index.php on line 35. if there is a mistake, how could be corrected? any options? I use Linux Ubuntu 15.04 KDE.