How to Create a Content Management System (CMS) Using PHP




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”

  1. 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.

  2. 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.

  3. 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…

  4. 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.

  5. 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.

  6. 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!!

  7. 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.

  8. 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.

  9. 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.

  10. 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

  11. 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

  12. 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 ?

  13. 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

  14. 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 🙂

  15. 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????

  16. 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

  17. 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?

  18. 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 🙂

  19. 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.

  20. 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.

Leave a Reply