How to create a blog PHP and MySQL database | Intro & Demo

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • 🚀Download the Source Code here for only $2: awamelvine.gum...
    🔥My upcoming Premium Course: codingpoets.co...
    This video is an intro and a demo of a series of tutorials on how to create a dynamic blog website using PHP and MySQL Database. The blog application in this tutorial will comprise the basic features of a blog application such as user registration and login system, create, read, update and delete post articles, post image uploading, categorizing posts into topics and more.
    This series is, however, a continuation of a series I created before on this channel in which I show you how to design the template that we will be using in this video to make it dynamic.
    You can watch the previous series here before taking this one: • Designing a responsive...

Komentáře • 172

  • @temiowolabi8715
    @temiowolabi8715 Před 3 lety +24

    So, I'm saying this at the start of the series rather than the end so new people can see this. If y'all are thinking of whether or not to follow these tutorials, I'm here to say do it! Awa's videos were one of the best sources I used to help me with my project. His videos are super detailed which is great if you want to learn and understand PHP.

    • @AwaMelvine
      @AwaMelvine  Před 3 lety +1

      Thank you so much, Temi! Wish you the best on your project.

    • @adetayoazeez5789
      @adetayoazeez5789 Před 3 lety

      Sorry to ask can this be use for commercial purpose?

    • @jerryenabulele1098
      @jerryenabulele1098 Před 3 lety

      Awal where have u been ?

    • @AwaMelvine
      @AwaMelvine  Před 3 lety +1

      @@adetayoazeez5789 yes, feel free to use it

    • @Morgan-Gsta
      @Morgan-Gsta Před rokem

      I fully agree, His videos are very usefull

  • @sarahacham5264
    @sarahacham5264 Před rokem +2

    Hi Melvin. Here from Uganda, thanks for the tutorials, they are very helpful to me. Stay blessed

  • @aliraza-lo6tj
    @aliraza-lo6tj Před 5 lety +1

    I have finished 15 video how to create a blog website, it was awesome..
    now i am exciting to learn this series..
    thanks bro..

    • @AwaMelvine
      @AwaMelvine  Před 5 lety +1

      Thanks for watching Ali. I'm glad you're learning from this.

  • @josephShamad
    @josephShamad Před 3 lety +1

    hi man please don't stop this amazing tutorials plz

  • @ManiBssProduction
    @ManiBssProduction Před 5 lety +2

    You're the best I'm kifff, I do not speak English but you push me to speak English. thank you to contunuer as his

  • @engr.malikmuhammadmubashir6828

    Thanks a lot Sir. I have been waiting for this series for a very long time. Thanks again. #Love #from #PAKISTAN

  • @maksymkarpenko3648
    @maksymkarpenko3648 Před 5 lety +4

    Awa, hello. Please post new tutorials with php and mysql. I am really looking forward to it

  • @PrinceKessie-xy9fv
    @PrinceKessie-xy9fv Před 5 měsíci

    Thanks very much master! You've helped me a lot. I have a problem please; How to display the posts in horizontal/row form in the index page? All the posts from the database are displaying vertically in the index page. I have three blogs row in my html index page. I need the posts to follow that order and if there is a fourth blog it should take a new line/row.

  • @cubedev4838
    @cubedev4838 Před 4 lety +1

    Really really really really amazing!!
    Your channel have great potential. No utuber colmplete like your channel!! You amazing!!

  • @Seba4285
    @Seba4285 Před rokem +1

    Excelent content!
    Im your new subscriptor!

  • @exogendesign4582
    @exogendesign4582 Před 3 lety

    Please Create a Web Application using php and designing the frontend from scratch, you're so goood.

  • @brorenjenkins815
    @brorenjenkins815 Před 3 lety

    Bro, you are amazing talented kind programmer, Thank you for all of these videos blog tutorial.

  • @paolomoscoso3716
    @paolomoscoso3716 Před 4 lety

    Bro thanks for these tutorials, there are no many people that like to teach stuff like this, it's very valuable! I've got a question not related to this, have you got any suggest about buying a Mac Laptop? Which one is your favourite? Thanks for your comments and keep uploading videos!

  • @ephraimalhamdu
    @ephraimalhamdu Před 3 lety

    Hey Awa I Just purchased the source code, good work bro... im a beginner PHP developer. I hope to learn a lot from it.

  • @cynthiamanor6565
    @cynthiamanor6565 Před 5 lety

    Awesome! I bookmarked your videos/playlist so I can go back and view these later.

  • @evg_adu
    @evg_adu Před 3 lety +1

    AMA MELVINE. You are a super box of awesomeness.谢谢你哦

    • @AwaMelvine
      @AwaMelvine  Před 3 lety +1

      Thank you very much, Emmanuel 😊

  • @karugajoseph9733
    @karugajoseph9733 Před 5 lety

    Thanks bro, you took so long but finally here, #nairobi loves you

    • @AwaMelvine
      @AwaMelvine  Před 5 lety

      Thanks for the kind words, Karuga Joseph.
      #nairobi receive my love from #cameroon, #nigeria

  • @codejunub
    @codejunub Před 4 lety

    Legit bro just iger waiting 4 more 4rm u dear

  • @DanielSantana-y5n
    @DanielSantana-y5n Před měsícem

    You rock dude.

  • @WaqasKhan-nq6ww
    @WaqasKhan-nq6ww Před 5 lety

    Thanks Brother. Your series is helping alot.

  • @zemanmark9812
    @zemanmark9812 Před 4 lety

    Hi Awa,
    you are original and the best and all your tutorials are perfect with mind blowing explanations.
    If all goes well, someday l will join your patron.
    Please, do you have a video on how to push php and mysql database to github or heroku?

  • @Razvanh29
    @Razvanh29 Před 4 lety +2

    This is a great application. Beautiful and smart. Congrats! :)

  • @markreeves5561
    @markreeves5561 Před 5 lety

    Thanks bro. Great Tutorial. I am getting a lot from it

  • @thediscover4387
    @thediscover4387 Před 2 lety +1

    How to create a permanent image that paste to the center of the article when creating articles?
    how to design fuger image?

  • @mr-ix2ze
    @mr-ix2ze Před rokem

    Can you tell how we can create database and link it with connet.php file

  • @kikuyucomedies
    @kikuyucomedies Před 2 lety

    Hello Awa. Thanks for awesome tutorials. I have been following your tutorials and i have learnt a lot. only one issue. when you access the blog via a mobile device, the login button is unclickable. what could be the issue?

  • @jebbush2964
    @jebbush2964 Před 5 lety

    How can I add Ajax pagination at the bottom of the homepage, and also when clicking the topic page, we should have pagination, another question is, how to display all users Admin and normal users in the Admin Dashboard, how you please shows us how to add dynamics CHART for user statistics, total post and filter by date, etc, and also how to add Google Analytics?

  • @DeezNuts-ej3vz
    @DeezNuts-ej3vz Před 2 lety

    Hello Awa i made the ui dashboard but how how to add life on it how to make it work ?

  • @user-jo9vm5mn7s
    @user-jo9vm5mn7s Před 9 měsíci

    Recently I've purchase your the Source Code however, error prompt which i need your advise.

  • @kartikverma3781
    @kartikverma3781 Před 3 lety

    first of all thanks a lot for making this wonderful series. But please tell me what changes should I have to do in my code when I will host this on the original server??? I am getting errors on line 34 of db.php on the original server

  • @rahu3567
    @rahu3567 Před 2 lety

    hey hello... this code is messed up in admin dashboard ......add post section .. it is not working in mobile.. it is not being responsive their.. fix it.

  • @thediscover4387
    @thediscover4387 Před 2 lety +1

    HOW TO ADD many picture with caption in to article?

  • @Dwavard
    @Dwavard Před 3 lety

    Great job, excellently explained :-)

  • @pedrofernandez807
    @pedrofernandez807 Před 3 lety

    Hello Mr Melvine. Great tutorial. Just what I had been looking for. I have a question, when I add a new post, the new images are not aligned in the slider, they are below the older images, why? Regards.

  • @expandgyan5033
    @expandgyan5033 Před 3 lety

    love from india

  • @avmediaworks2050
    @avmediaworks2050 Před 4 lety

    Thank you awa your tutorial if very useful for me very kind of you......

  • @pravatmete5653
    @pravatmete5653 Před 5 lety

    Very helpful video sir...
    Thank you sir.

  • @ManiBssProduction
    @ManiBssProduction Před 5 lety

    adds a more advanced notification sythme and a forum

  • @ComibyteOrg
    @ComibyteOrg Před 25 dny

    Sorry, is it be only admin that can post or all users

  • @wajira45
    @wajira45 Před 4 lety

    Hello, Great tutorials thanks, can you add like, unlike, time ago function instead date published

  • @NICHLE.
    @NICHLE. Před 2 lety

    Hello sir, firstly thanks for your tutorials. Also, I hope you will answer my question. So, If I code the website watching videos from this playlist, will I need to download source code in order to complete this blog website project? I mean, are there something in the source code that isn't included in the videos?

  • @primebod1979
    @primebod1979 Před 7 měsíci

    thank you

  • @okaygoogle8517
    @okaygoogle8517 Před 3 lety

    Pls upload video how to add multiple author not admin pls

  • @mrcljust
    @mrcljust Před 5 lety

    First of all, great tutorials!
    Maybe you can add something which makes the links after clicking the posts to /blog/title_of_post instead of /blog/single.php?id=1 ?

    • @AwaMelvine
      @AwaMelvine  Před 5 lety +3

      Hi Marcel, thanks for your suggestion. It's a really great idea as it helps with SEO. I actually thought of it but figured it might be beyond the scope of this course as I want it to be beginner-friendly.
      I would either need to create a router from scratch or use a PHP router package to achieve this. Either way, it might be hard to grasp and might make the video series too long.
      If you like I could create another tutorial dedicated to this purpose?

    • @melikovfazli7052
      @melikovfazli7052 Před 4 lety

      @@AwaMelvine Pease!!, As a Seospecialist I will wait for this tutorial))))))

  • @tourmygallery
    @tourmygallery Před 2 lety

    I Have being Trying To Pay For The Source Code but My Country Card Is Not Allowed

  • @peppefailla1630
    @peppefailla1630 Před 5 měsíci

    damn your keyboqard sounds nice

  • @NoRa-ws8fo
    @NoRa-ws8fo Před 3 lety

    Thanks

  • @aakaashskale9228
    @aakaashskale9228 Před 4 lety

    I am getting an error.....My database tables work when I work with them. But whenever I try to access my tables the next day it says 'table does not exist in engine. Help me with this please!!'

  • @joshuaayomide778
    @joshuaayomide778 Před 4 lety

    good afternoon boss thanks for this nice videos God bless you please after taking the site online if i register my Id under the database will be 0 even for post and topics id does not increase always showing 0

  • @ifeanyinnaemego
    @ifeanyinnaemego Před 4 lety

    This is a nice job.
    But i still need your help.
    Can you not do something about the post URL instead of showing the post id it should rather show the post title

  • @dimabeelan7309
    @dimabeelan7309 Před 3 lety

    Прекрасный пример того, как не стоит делать блог. Спасибо, давно такую парашу не видел:D

  • @karimfarhat5454
    @karimfarhat5454 Před 4 lety

    Could you please make a video on the admin's section responsiveness on smaller devices ?

  • @prasadtm
    @prasadtm Před 4 lety

    I have completed the design. The issues posted erlier are resolved leaving one issue, i.e., the footer is foating into middle of the page, especially in single sheet post. If possible please review and provide guidance. Thank you.

  • @endtimechristians884
    @endtimechristians884 Před 4 lety

    so please how can i give all users ability to send posts on the page, but i the admin will decide to publish it or not. that is to say the dashboard is set to "UNPUBLISH" by default. thanks

  • @manchester_utd
    @manchester_utd Před 4 lety

    i have realised one problem with the website.......the dashboard is not responsive and also the when you decrease the size of the website to the mobile size the login links will not work.......i wish you could adress this problem sir

  • @gualberto864
    @gualberto864 Před 2 lety

    Que version de php estaba utilizando

  • @shubhradasgupta691
    @shubhradasgupta691 Před 3 lety

    I think there should be an option for users to post their blogs

  • @nuradiltursun6298
    @nuradiltursun6298 Před 4 lety

    thank you sir ....love you a lot

  • @sakhanbhakak3667
    @sakhanbhakak3667 Před 3 lety +1

    Hi awa please teach us how to publish it on live
    Hi awa please teach us how to publish it on live

  • @channelkampung9108
    @channelkampung9108 Před 3 lety

    am subcription

  • @dhananjaysoodvlogs2385

    why the Signup page is going to localhost 8888?

  • @karasala7822
    @karasala7822 Před 4 lety

    Hi bro tnks for good videos but i have 1 question could sent me your html and css model since i knew html and css

  • @abdullahfajrutheen6392

    Awa Melvine Please tell me which Xampp server do you use

  • @joprogrammation1532
    @joprogrammation1532 Před 3 lety +1

    Thx bro

  • @ManiBssProduction
    @ManiBssProduction Před 5 lety

    you can make a message system deprive like twiiter?

  • @nightbeforeflourist1742

    Hi Awa.great video as always.could you provide the source codes of this series on your website?

    • @AwaMelvine
      @AwaMelvine  Před 5 lety

      Hi, can you send me an email on my website? Thanks

  • @christyshafack5460
    @christyshafack5460 Před 3 lety

    Damn! this is AWESOME!

  • @belbobelbo7496
    @belbobelbo7496 Před 3 lety

    Hi, in this project use RESTFUL?

  • @GameOn444s
    @GameOn444s Před 4 lety

    Awesome video!

  • @vijayprakashgairola436

    Hey this website is fully messed up. Fails to be fully responsive. Add post section and similar topics and user . dashboard is not responsive. Bas mobile view. .. website is heavy. FUll of images.. no option for super admin.. poor dashboard.. no code is merged for pagination.. provide source code also as u add some feature as u added pagination.. I gave lots of time here and found this. Fix it

  • @yunosenta
    @yunosenta Před 7 měsíci

    Does this only works on a privat server?

  • @nishantsingh2707
    @nishantsingh2707 Před 4 lety

    How to add multiple images in the article ??

  • @urbaindesign
    @urbaindesign Před 3 lety +1

    Awa Melvine you are missed.
    I hope you are fine

    • @AwaMelvine
      @AwaMelvine  Před 3 lety +1

      Heyyy Urbain! That's very kind of you to check on me. I've been fine, thanks. Just got swept into life's vicissitudes and haven't had a chance to upload in a long time. I'm back now though.

    • @urbaindesign
      @urbaindesign Před 3 lety

      @@AwaMelvine I am happy to hear from you, welcome back.
      I am glad that you are fine.
      Happy to have you back

  • @nebiephilippe7738
    @nebiephilippe7738 Před 4 lety

    thanks for this serie

  • @channelkampung9108
    @channelkampung9108 Před 3 lety

    nice broo

  • @bikychowhan4997
    @bikychowhan4997 Před 4 lety +1

    how can I find this code on github?

  • @ManishSinghvlogspro
    @ManishSinghvlogspro Před 4 lety

    When you taking the company complete series of vedio for DETABASE

  • @prasadtm
    @prasadtm Před 4 lety +1

    your videos are helpful. But, I am unable to find the correct code for the following as the browser showing eror syntax (endforeach is showing error). Please provide information about error in the following syntax. Thank you.

    • @AwaMelvine
      @AwaMelvine  Před 4 lety

      Hi, I think you made a mistake:
      Please change this:
      into this:
      No quotes.

    • @prasadtm
      @prasadtm Před 4 lety

      @@AwaMelvine Thank you. One more issue. If possible please resolve.
      Warning: Use of undefined constant ROOT_PATH - assumed 'ROOT_PATH' (this will throw an Error in a future version of PHP) in D:\Websites-Servers\Xampp\htdocs\tm\servicesjournal\app\controllers\users.php on line 2
      Warning: include(ROOT_PATH/app/database/db.php): failed to open stream: No such file or directory in D:\Websites-Servers\Xampp\htdocs\tm\servicesjournal\app\controllers\users.php on line 2
      Warning: include(): Failed opening 'ROOT_PATH/app/database/db.php' for inclusion (include_path='D:\Websites-Servers\Xampp\php\PEAR') in D:\Websites-Servers\Xampp\htdocs\tm\servicesjournal\app\controllers\users.php on line 2.
      The above issue is occuring on inclusion of file db.path in user.php. The code is given below -
      user.php file code:
      register.php file code:








      Register




      Register








      Username



      email



      Password



      Password Confirmation



      Register

      Or

    • @AwaMelvine
      @AwaMelvine  Před 4 lety +1

      @@prasadtm Please do
      define("ROOT_PATH", ...);
      instead of
      define(ROOT_PATH, ...);
      in your path.php

    • @prasadtm
      @prasadtm Před 4 lety

      @@AwaMelvine Thank you for reply. My path file code is as follows -
      Thanks for responding. If possible please review the mailed pages. Actually I tried so many alternatives but failed to go forward; now I am in a stage to stop the project. Your voice is beautiful and narrations are excellent but feeling very inconvenieance to go back and listen the videos repeatedly due to the keyboard sounds. Already severa times I have gone through your videos. I think there are version issues may be as I am using present PHP version. Any have if possible please resolve the issue. It is not possible to post every issues publicly. Thank you once again for your goodness.

    • @prasadtm
      @prasadtm Před 4 lety

      @@AwaMelvine I have gone through the following website also -
      codewithawa.com/posts/how-to-create-a-blog-in-php-and-mysql-database---admin-posts

  • @BrijeshKumar-ls1yy
    @BrijeshKumar-ls1yy Před 4 lety

    Hey great video,can you please provide a source code,it will help me a lot.

  • @codingwithmiles2732
    @codingwithmiles2732 Před 4 lety

    I just started watching this series, does it allows users to comment?

  • @sumeethmoolya8773
    @sumeethmoolya8773 Před 4 lety

    Can anybody explain the functioning of manage user.Suppose I published this website online then many people can create account and write their post so if my friend create an account and if he wrote some posts then how can I see and read his/her posts.
    Please somebody reply this

    • @ephraimalhamdu
      @ephraimalhamdu Před 3 lety

      No he clearly stated that only the Admin has root access to add another admin, so as long as you don't give out your admin password other registered users can only have access to read. while only Admins can Read and Write

  • @cubedev4838
    @cubedev4838 Před 5 lety

    Amazing!!

  • @mustafaanwar463
    @mustafaanwar463 Před 5 lety

    Hi awa when security and testing parts will upload?

    • @AwaMelvine
      @AwaMelvine  Před 5 lety

      Hi Mustafa, what do you mean by security and testing? Do you mean unit tests?

  • @JadanPursuitVlogs
    @JadanPursuitVlogs Před 4 lety

    Hello friend. Can I edit the code and sell it online and also to clients

  • @thediscover4387
    @thediscover4387 Před 2 lety

    Is it okay to put a web page made from this on the internet?

  • @justkeepnlaughing
    @justkeepnlaughing Před rokem

    Vibe of this thing free na

  • @maheshhudali792
    @maheshhudali792 Před 5 lety

    When are releasing next part?

  • @divyanshugupta8360
    @divyanshugupta8360 Před 4 lety

    Can u please share me the code of this project sir

  • @6191jaken
    @6191jaken Před 4 lety

    I deleted all my functions and started over. I went through
    all the chapters concerning the functions, and I just completed the validation
    chapter. However, I am still having the same issue. I cannot add another user
    until I delete the one that I have in the database. I have no errors, and the
    database populates fine; except, I can only add the next user after I delete
    the current one. I have looked over my code and can’t find what I did wrong.

    • @AwaMelvine
      @AwaMelvine  Před 4 lety

      Really sorry about your stress. Can you try creating the user with a different username each time and let's see if it works?

    • @6191jaken
      @6191jaken Před 4 lety

      @@AwaMelvine I'll give that a try. The only stress I have is when my ex-wife calls. This is a passion, and nothing that is worthwhile, comes without bumps in the road.

    • @6191jaken
      @6191jaken Před 4 lety

      @@AwaMelvine that didn't work. I tried with different everything. It seems that it has to be in the create or update function. Not sure.

    • @AwaMelvine
      @AwaMelvine  Před 4 lety

      @@6191jaken do you use Github? I could take a look at your code

    • @6191jaken
      @6191jaken Před 4 lety +1

      @@AwaMelvine I have an account. I never posted anything on it. Let me figure out how to do that and I will send you the link. Thank you very much.

  • @MuhammadAdnan-gx6rd
    @MuhammadAdnan-gx6rd Před 5 lety +1

    Suggested #Laravel

    • @AwaMelvine
      @AwaMelvine  Před 5 lety +2

      I'll implement this same website later on with Laravel in another tutorial series

    • @MuhammadAdnan-gx6rd
      @MuhammadAdnan-gx6rd Před 5 lety

      @@AwaMelvine thanks it should be advanced blog website. ...with laravel jquery ajax

    • @AwaMelvine
      @AwaMelvine  Před 5 lety +1

      @@MuhammadAdnan-gx6rd :) Okay, I'll consider that. Even though I'm not a fan of JQuery though but we'll see about it when the time comes

    • @MuhammadAdnan-gx6rd
      @MuhammadAdnan-gx6rd Před 5 lety

      @@AwaMelvine okay waiting

    • @MuhammadAdnan-gx6rd
      @MuhammadAdnan-gx6rd Před 5 lety

      @@AwaMelvine not jquery so Vue ?

  • @bikychowhan4997
    @bikychowhan4997 Před 4 lety

    need help
    $stmt->bind_param($types, ...$values);
    fatan error: boolen value

    • @batswanac.s.spodcastonline9554
      @batswanac.s.spodcastonline9554 Před 4 lety

      you have to call the variable type using i/s ie
      $stmt="INSERT INTO eg (id , types, values) VALUE(?,?,?)"
      $stmt->bind_param('iss', $id, $types, $values);
      hope its not too late

  • @inny_yabs
    @inny_yabs Před 4 lety

    Awal pls I want the HTML and CSS source code

  • @rehanmiya2761
    @rehanmiya2761 Před 4 lety

    How to upload under article

    • @AwaMelvine
      @AwaMelvine  Před 4 lety

      Do you mean how to create a block post and have it saved in the database? Continue watching the other episodes and you will see it.

  • @gabrielgodsent5048
    @gabrielgodsent5048 Před 3 lety

    why didn't you add comment section?

    • @AwaMelvine
      @AwaMelvine  Před 3 lety

      It would have made the course too long, and I didn't want that because it might have discouraged viewers from watching. I might be wrong but that's what I thought.

  • @rehanmiya2761
    @rehanmiya2761 Před 4 lety

    But bro can you explain this website is seo friendly or not.

    • @AwaMelvine
      @AwaMelvine  Před 4 lety +1

      Hi HACKER King, the website is done in PHP so it is server-side rendered. This makes it SEO friendly. Also, we will set the title of the article as the content in the tag on each page. These factors contribute to making the site SEO friendly but there are other SEO optimization techniques that can be done as well but that is beyond the scope of this course.

    • @rehanmiya2761
      @rehanmiya2761 Před 4 lety

      @@AwaMelvine okk

    • @rehanmiya2761
      @rehanmiya2761 Před 4 lety

      @@AwaMelvine Bro cane you send me source code because I am creating this project but lod of errors showing.
      If you give me the source code, then I will be able to compare for my project.

  • @rehanmiya2761
    @rehanmiya2761 Před 4 lety

    But bro how to upload image under article

    • @AwaMelvine
      @AwaMelvine  Před 4 lety

      In one of the proceeding episodes, I have implemented image upload. Just continue watching the other episodes.

    • @rehanmiya2761
      @rehanmiya2761 Před 4 lety

      @@AwaMelvine o

  • @bikychowhan4997
    @bikychowhan4997 Před 4 lety

    hello bro i need your help

  • @superxcraft7792
    @superxcraft7792 Před 4 lety

    download link ?

  • @AliciaGuitar
    @AliciaGuitar Před 4 lety

    For those asking for code and links: codewithawa.com/tutorials