Advanced Shopping Cart Tutorial With Php and MySqli Database

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 1 тыс.

  • @udomachinwa3329
    @udomachinwa3329 3 года назад +22

    Bro you are like a role model to me and you literally taught me everything i know in php and mysql.. i wish to see you in person someday....thanks for this video and may God almighty bless you

    • @DailyTuition
      @DailyTuition  3 года назад +1

      Ohh. Thank you so much 🥰

    • @barryomon1137
      @barryomon1137 3 года назад +2

      please do you know how i can increase the cart quantity

    • @Viravideo_short
      @Viravideo_short Месяц назад

      ​@@DailyTuitionwhere will be data saved

  • @ndimalembede6945
    @ndimalembede6945 2 года назад +9

    What an amazing tutorial that not only show you how everything is done step by step but the way he describes it ensures that you comprehend what's happening..... Great job!!!!👍

  • @safutora7778
    @safutora7778 3 года назад +17

    AMAZING VIDEO! i really like that you explains some of the function's functions so that beginners like me understand the concept as a whole. Keep it up man!

  • @carlosespinosa6446
    @carlosespinosa6446 4 года назад +4

    this is awesome, now just insert a login system for username and password:)!

  • @aashutoshsinha1253
    @aashutoshsinha1253 4 года назад +1

    i started this a wek ago..i thought it would be easy for me to do...but ...no!!!
    damn..sir u r great
    i got error evry now n then
    i got frudstated
    i sat in laptop fro 10 hours a day
    i kept doing
    1 error
    solved it
    then 2nd error solved it
    yes i gort fade up
    but still i didnt quit
    i tried tried n tried
    many places coding didnt work due to latest php version
    but i didnt loose hope
    i searched web
    went throiugh other tutorials and finallyu !1
    today
    i finaly finished it..
    a big thank you to u!!!!!
    also, its not like that i copied n paste
    ur efforts of teaching students really made me learn so many things
    now i will modify the design and make it more functional by adding log in and sign up
    thank u sir
    love u

    • @DailyTuition
      @DailyTuition  4 года назад +2

      most welcome, keep learning with effort 🙂👍

  • @techcanyon411
    @techcanyon411 5 лет назад +17

    Thanks for the effort and time you spend on this great heartwarming tutorial, it was very educative.

  • @sohelalamin2079
    @sohelalamin2079 3 года назад +3

    thank you bro im waiting for next video for this project .

  • @nitabias2073
    @nitabias2073 Год назад

    Wow this video help me clearing the logic of cart thank you it's a project which is also an assignment before job interview interview

  • @brendandefaria4495
    @brendandefaria4495 3 года назад +5

    Thanks so much! This is an amazing tutorial.

  • @Walid-Sahab
    @Walid-Sahab Год назад +1

    سر بہترین سمجھایا ہے
    یقین کریں بہت عمدہ 🤍

  • @reemkhalid6021
    @reemkhalid6021 4 года назад +4

    ur a true hero my sir, thank u

  • @pervertbismarck5067
    @pervertbismarck5067 2 года назад +1

    I was panicking because I don't know how to make add to cart work for my assignment. I came to the right place, thank you kind sir

    • @DailyTuition
      @DailyTuition  2 года назад +1

      Most welcome. Keep learning

    • @pervertbismarck5067
      @pervertbismarck5067 2 года назад +1

      @@DailyTuition Where can I learn to increase the quantity of items in the cart?

    • @DailyTuition
      @DailyTuition  2 года назад

      Check out my Ecommerce tutorial on this channel. ruclips.net/video/KLWA2vCERSQ/видео.html

  • @nurishqashrina8397
    @nurishqashrina8397 Год назад

    thank you so much for your tutorial. May god bless you and your fellow tutors that also helps me on doing my project!

  • @cubedev4838
    @cubedev4838 4 года назад +3

    I notice you only one channel that have great php tutorial, thanks a lot. Can u teach us how to integrate payment with php :)
    Really appreciate

  • @JustinTheVlogger
    @JustinTheVlogger 4 года назад +2

    34:09 Thank you for giving information about that, now I can create a database and table using PHP script. God bless and stay safe!

    • @DailyTuition
      @DailyTuition  4 года назад +1

      Most welcome 😊 keep supporting

    • @JustinTheVlogger
      @JustinTheVlogger 4 года назад +1

      @@DailyTuition I already subbed you, keep up the good work, your effort is greatly appreciated.

  • @arunarkamukhopadhyay6443
    @arunarkamukhopadhyay6443 4 года назад +12

    "So I'm gonna just say here..." X104...
    Great tutorial Man!!

  • @Btech94
    @Btech94 2 года назад +1

    Thanks a lot. Very clear instructions. I can understand your teachings more than my lecturers :-)

  • @omarykijogoo9216
    @omarykijogoo9216 4 года назад +8

    Could you please help me with the code to increment quantity and get the final price in the same project.?

  • @Pinapin_
    @Pinapin_ 2 года назад +1

    the best bro, thank god I found u

  • @ajinkya-more
    @ajinkya-more 4 года назад +5

    Great job brother! Thanks a ton! 🙏🏻

  • @umairmustafa4196
    @umairmustafa4196 3 года назад +1

    lovely video i am looking this kind of video

  • @erlanggachakra1074
    @erlanggachakra1074 2 года назад +3

    hey man i just have one question : if i logout and log in using another account, how do i know if the cart session belong to the current logged in user and not displaying the same shopping cart for all users?

    • @DailyTuition
      @DailyTuition  2 года назад

      Using the id. Match the log user id with the card user id. Make sure when user add card data you add user id as well with the card. So you only fetch the card with belongs to the log in user

  • @lukaszspychaj9210
    @lukaszspychaj9210 2 года назад +1

    Amazing tutorial, helped me grasp PHP and the basic usage of MySQL and MyPHPAdmin in half an hour

  • @penathriser6178
    @penathriser6178 3 года назад +4

    Good morning, dear Sir!
    Excuse me, I will be a little off topic, but I am currently building an online sales site, which includes a back office allowing the management of orders placed by customers.
    My problem is with the recording of the contents of a basket in the database.
    I have an "order" table that contains a product_id field and an order_id field, and I don't see how to save multiple product_id (if the cart contains multiple products with different id's) under one order_id.
    Currently, when there are several products, only the product_id of the last product (for example, if there are 4 products, only the product id4 is taken into account) is recorded in the order table.
    Thank you in advance for your help.

  • @arifislam6822
    @arifislam6822 Год назад +1

    Thank you sir.. God bless you...

  • @rimurutempest6586
    @rimurutempest6586 4 года назад +7

    Great tutorial. Looking forward for your future tutorials

  • @wondersofnatural
    @wondersofnatural 2 года назад +1

    i'm from 2021 just wanna say i'm really thanks for good explaination❤

  • @senju31
    @senju31 3 года назад +3

    much love from jamaica

  • @sumittimalsina3589
    @sumittimalsina3589 3 года назад +2

    this was amazing man! Great job!

  • @tejassawant8774
    @tejassawant8774 3 года назад +3

    Great tutorial on add cart got to learn alot thanks for it👍

  • @mdmuballigali833
    @mdmuballigali833 3 года назад

    Thank you so much for creating this tutorial....... Love you bro.......

  • @eltonsilvamtm
    @eltonsilvamtm 4 года назад +3

    Thank God I came across this tutorial, very well explained 👏 not sure if you did it but how can the cart list be saved so every time the user logs in his cart will still have his products?

  • @tpssshubham9047
    @tpssshubham9047 2 года назад +1

    thankx for your efforts. Its really usefull.

  • @BadBaneCat98
    @BadBaneCat98 3 года назад +3

    thank you so much this helped me a lot :))

  • @najmusshakib2714
    @najmusshakib2714 4 года назад +2

    I have learned a lot.....its great tutorial..

  • @maxiequa567
    @maxiequa567 5 лет назад +3

    A very interesting tutorial. Questions: 1. Why not PDO for Database? 2. Will you implement a PayPal transaction system for completeness?

    • @DailyTuition
      @DailyTuition  5 лет назад +2

      I am from functional programming so that is why I am not using pdo. Any way I will make a PayPal transaction system for you. Thank you 😊 for your request

    • @maxiequa567
      @maxiequa567 5 лет назад +1

      @@DailyTuition Amazing! Thank you!

  • @laovoyage
    @laovoyage 2 года назад +1

    Amazing Tutorial Software !

  • @williambrandon5146
    @williambrandon5146 4 года назад +4

    You saved me!

  • @takundaaphiri9055
    @takundaaphiri9055 3 года назад +1

    Very educative. I liked how youtook us step by step.

  • @frankjia6904
    @frankjia6904 4 года назад +3

    Great video!
    Change suggestion in cart.php: in the if statement after "$total=0;", add "&& !empty($_SESSION['cart'])" in condition so "Cart is empty" can be properly displayed when session is set while there is nothing in the cart.

    • @DailyTuition
      @DailyTuition  4 года назад +1

      I recently uploaded a new video that will explain you everything.

    • @denizdemir9255
      @denizdemir9255 4 года назад

      @@DailyTuition Link please?

  • @christopherjacked6975
    @christopherjacked6975 2 года назад +1

    The Best Tutorial on Planet EARTH.. KEEP IT UP

  • @jessenjie6202
    @jessenjie6202 2 года назад +1

    This tutorial is so amazing, thankyou very much... i hope there is next session to procceed confirm method payment :)

  • @g.i.7productions217
    @g.i.7productions217 3 года назад +3

    After creating component.php I get a syntax error: unexpected end of file. My component.php file ends with } am I getting something wrong?

    • @DailyTuition
      @DailyTuition  3 года назад

      This is syntax error. Plz check you are missing the syntax

    • @raajmultani6161
      @raajmultani6161 2 года назад

      I get an error after putting products in the component function and the error is unexpected ‘:’ please tell how to solve?

  • @jidarun9349
    @jidarun9349 Год назад

    ThankYou Mr. Daily your videos help me to do my homework :)

  • @chandnijivrajani7399
    @chandnijivrajani7399 2 года назад +4

    Time Span:18:24- at least to let your viewers know that you've replaced double quotation with back slash double quotation

  • @nurhasan8333
    @nurhasan8333 Год назад

    thanks.. it's a very helpful tutorial for me..

  • @HariKrishnan-ff4hf
    @HariKrishnan-ff4hf 4 года назад +3

    Hello bro,make video on payment gateway for this project.

  • @digi...8566
    @digi...8566 3 года назад +1

    It is an excellet vedio session.Many Thanks

  • @TaylanYalniz
    @TaylanYalniz 4 года назад +3

    any follow up tutorials on PayPal or Stripe integration? Thanks

  • @Salma-qy3qb
    @Salma-qy3qb 3 года назад +1

    Thank u so much this was so useful I'm crying rn

  • @geosalman123
    @geosalman123 4 года назад +7

    i got the error:
    Warning
    : mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in
    C:\xampp\htdocs\Advance_Shopping_cart-master\Advance_Shopping_cart-master\index.php
    on line
    71

    • @DailyTuition
      @DailyTuition  4 года назад

      Add data in the table and make sure the query returning at least one record 👍

    • @paulmhone4582
      @paulmhone4582 4 года назад +1

      @@DailyTuition i dont understand what you mean there ..please show me how to do it

    • @DailyTuition
      @DailyTuition  4 года назад

      I mean add record in the table and try again

    • @s.i.k1407
      @s.i.k1407 4 года назад +1

      @@DailyTuition Good day I have the same issue can you please make a video or explain a bit more in detail as to how / where to input his: "INSERT INTO Producttb (product_name, product_price, product_image)
      VALUES ('Apple MacBook Pro',1799,'./upload/product1.png'),
      ('Sony E7 Headphones',147,'./upload/product2.png'),
      ('Sony Xperia Z4',459,'./upload/product3.png'),
      ('Samsung Galaxy A50',278,'./upload/product4.png')";

    • @DailyTuition
      @DailyTuition  4 года назад

      This is the SQL command. You need to execute it in the SQL file. This will insert data in the table.

  • @seifbenmansour851
    @seifbenmansour851 4 года назад +1

    i love you man you saved my life

  • @pubgamycrawford4183
    @pubgamycrawford4183 4 года назад +3

    18:29
    i got this error
    Notice: Undefined variable: element in /opt/lampp/htdocs/shoppingapp/shopping/php/component.php on line 37
    what's the problem?

    • @DailyTuition
      @DailyTuition  4 года назад

      Variable is undefined. It means you need to create this variable before using it.

    • @janwell8964
      @janwell8964 4 года назад

      @@DailyTuition I have created the variable by following your tutorial but it's still not working

    • @janwell8964
      @janwell8964 4 года назад +1

      Got it now, I forgot to put a semi-colon after the $element

  • @davidedgahomondi440
    @davidedgahomondi440 2 года назад +1

    This is great Sir

  • @DeepakSingh-pd8nu
    @DeepakSingh-pd8nu 4 года назад +4

    Sir
    How to use JavaScript for changing the quantity of product

    • @DailyTuition
      @DailyTuition  4 года назад

      Working on new project with quantity

    • @rajangurung9284
      @rajangurung9284 4 года назад +1

      @@DailyTuition we need further more help for this issue
      Could please make video for it??

  • @kamalakantapanda4255
    @kamalakantapanda4255 4 года назад +1

    lovely very usefull tution

  • @ather-k-vlogs
    @ather-k-vlogs 4 года назад +13

    Buddy the title of video is shopping cart tutorial you took an hour just to set up the website it would be better if you just focused on the functionality of cart only

    • @danandlucy4261
      @danandlucy4261 2 года назад +3

      We needed what he did

    • @xavierpersal258
      @xavierpersal258 Год назад

      I disagree with you. Most of viewers here are just starting to understand everything that is required for a full cart system!! Bro just scroll to where you need is what i do sometimes!

  • @waleedsoudi9599
    @waleedsoudi9599 2 года назад +1

    YOUR AMAZING MAN THANK YOU

  • @lockhart3673
    @lockhart3673 4 года назад +5

    How to increase the quantity? Why is this called advanced if you can't even add the quantity

  • @delata3964
    @delata3964 Год назад

    This is only for a single user no? what can I do to store multilple users carts information in the database? Also youre so good in explaining and teaching!!

  • @syedsajidali5052
    @syedsajidali5052 4 года назад +1

    one of the best tutorial. Thanks Bro

  • @rayenab9301
    @rayenab9301 3 года назад +1

    Thanks for this great video , great job 👍 🇹🇳

  • @_ashutosh0710
    @_ashutosh0710 3 года назад +2

    Tysm 🤩 very well explained !!

  • @0brycefury
    @0brycefury 3 года назад +1

    Great tutorial man! thank you so much!!

  • @shekarreddy2459
    @shekarreddy2459 3 года назад +2

    Thank you so much for the tutorial, and the source code is very much helpful for my college project..

  • @Luciel_yt
    @Luciel_yt Год назад

    thanks dude, very helpful

  • @forestlin6164
    @forestlin6164 4 года назад +2

    Thank you very much! It is a very good project.

  • @alekosargyriou8214
    @alekosargyriou8214 4 года назад +2

    excellent work, very educational, keep up the good work.

  • @sudeepmohannair2665
    @sudeepmohannair2665 4 года назад +2

    Great work. Appreciate

  • @issiwarakavinda4056
    @issiwarakavinda4056 3 года назад +1

    Thank You very much sir :-)))

  • @alvinellavu9603
    @alvinellavu9603 3 года назад +1

    bro you the best

  • @mdrakibulislam4544
    @mdrakibulislam4544 5 лет назад +1

    Thanks man for this tutorial you are awesome

  • @nhornlik8308
    @nhornlik8308 7 месяцев назад

    Thanks sir for best tutorial

  • @williesolomon614
    @williesolomon614 3 года назад +1

    Thank you so much, a very nice tutorial.

  • @bolajiteslim9408
    @bolajiteslim9408 2 года назад +1

    i love your work , keep it up

  • @tynegeemajor
    @tynegeemajor 3 года назад +1

    what an amazing tutorial I appreciate that. Nice work

  • @sanabargaoui7893
    @sanabargaoui7893 3 года назад +1

    Thanks a lot , it was really useful 👍 👌 you've helped me in my project
    God bless you 🙏

  • @ahmedsaleh4390
    @ahmedsaleh4390 2 года назад +1

    Awesome

  • @Allinone-ll7ms
    @Allinone-ll7ms 3 года назад

    Sir very very thankful for you
    Sir plz upload more video of cart check out system and confirmation message show to customer and creat paying system

  • @nasrtkhan5889
    @nasrtkhan5889 3 года назад +1

    Hi
    Sorry miss I have question
    You used in this Web page
    Bootrap yeah
    Because some attributes is new for me

  • @ameliagutierrez5018
    @ameliagutierrez5018 4 года назад +1

    thankyou for this .it's really helpful specially for begginers like me😊 👍

  • @johnli8662
    @johnli8662 3 года назад +1

    this video is very good.

  • @36_parthshrimali84
    @36_parthshrimali84 3 года назад +1

    Smart work dude....✌️♥️

  • @kittyyuan4373
    @kittyyuan4373 3 года назад +1

    Thank you so much, this video is amazing!

  • @fandrocellular4669
    @fandrocellular4669 2 года назад +1

    Thank You!

  • @soroushabbasi8882
    @soroushabbasi8882 2 года назад +1

    Thank you so much

  • @GadgetxTech
    @GadgetxTech 3 года назад +1

    Nice thanks

  • @Batara35
    @Batara35 2 года назад +2

    How to make a space between sections. When I put 4 sections, the line is filled and when I start to place new products, there is no space between the first section of 4 products and the second section of 4 products. How do I solve this?

    • @DailyTuition
      @DailyTuition  2 года назад

      Use flex to the section and add gap property to it

    • @Batara35
      @Batara35 2 года назад +1

      @@DailyTuition tnx bro

  • @harshithajawahar8255
    @harshithajawahar8255 3 года назад +2

    Life saverrrrr! Thankn youuuu!

  • @mohamedazharudheen2751
    @mohamedazharudheen2751 2 года назад +1

    I want to use select field for the size. Each size have diff prices and i want to add it into cart. Please give me an example

  • @kaijhinn5757
    @kaijhinn5757 4 года назад +2

    Hi I already have a shopping cart but can I know more about the part where it display the amount of item in the cart? I can't seem to get it working.

    • @DailyTuition
      @DailyTuition  4 года назад

      Use JavaScript for quality. Using it increase the quantity

  • @ashajyothidonga7895
    @ashajyothidonga7895 3 года назад +2

    Thank you Sir, I have learnt many from this video :D

  • @khaledemad6430
    @khaledemad6430 4 года назад

    Hello
    At 18:30 how the slashes been added when u copied the code. Example (

  • @kelvinchikwati9136
    @kelvinchikwati9136 5 лет назад +1

    when I click the add to cart button when tyring to check the quantity, it's giving me an error"Fatal error: Call to undefined function array_column() in C:\wamp\www\E-cycle\shop.php on line 14".

  • @leonkimu9787
    @leonkimu9787 2 года назад +2

    Hello i ran into a problem when I run the cart page and refresh the phpmyadmin the database does not appear there.Kindly assist.

    • @DailyTuition
      @DailyTuition  2 года назад

      Make sure you call connection function in php to create database

  • @trevorphilips141
    @trevorphilips141 3 года назад +2

    Thanks a lot, bro!

  • @baton4iki
    @baton4iki 3 года назад +2

    hello, thanks for the video, but how can I make it so that when I click on (Plus or Minus, the product is added and decreased ?)

    • @DailyTuition
      @DailyTuition  3 года назад

      I have a dedicated video on it plz check the channel video section. Search for e-commerce website tutorial

  • @vidyavageesh4219
    @vidyavageesh4219 4 года назад +1

    thank u so much sir

  • @jodhaniarpit8949
    @jodhaniarpit8949 7 месяцев назад +1

    How to set card in 1 row my product cart 2 is below to product 1 card

  • @_niktarmizi_
    @_niktarmizi_ 5 лет назад +1

    Hey I don't know much of php script for creating database. But, is there a reason/s why my codes couldn't create the database even though i changed just the variables?