7. Food Order Website with PHP and MySQL (Adding and Displaying Foods)

Поділитися
Вставка
  • Опубліковано 5 січ 2025

КОМЕНТАРІ •

  • @mohammedsibahi4713
    @mohammedsibahi4713 3 роки тому +13

    The reason why we use $sn rather than simply echoing $id is due to the keeping a consistent numbering of the items. Upon deleting an item from the database, the id is deleted as well, so in order to keep the numbers complete and in order, the $sn is used. BTW, thanks for such a useful tutorial. Can't wait to learn more from you.

    • @VijayThapa
      @VijayThapa  3 роки тому +3

      I'm really glad that you understood the concept clearly.
      Thank you so much for following the tutorials and hope they were helpful to you.
      Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends.
      It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
      Thanks and Regards!

    • @mohammedsibahi4713
      @mohammedsibahi4713 3 роки тому +1

      @@VijayThapa
      Sure. I'll share it with every web developer who intends to advance their skills in PHP.
      Now I have a request and a question. Could you please upload more projects so we can learn the integration between frontend and backend development?
      My question is: what's the next step after learning PHP?

    • @teerapong0072
      @teerapong0072 2 роки тому

      ตคสสสนนนฟนนนนนนนนนนน สมสมสมวคึสึรนงางฝงางงใมงงฝงฃงางงงงงงงงฝงสวนสมมาสสมสมสมสมสมสมสมสมสมสมราคายคึึคึึคีึสมสมสมสมััสมสมสมสมสมสมสมสมสมสมสมสมสมสมสมสมสมสสสสสวสค่าาาท่ารถสารรถต

    • @patilcreation4380
      @patilcreation4380 Рік тому

      I have an error in adding food when we not entered any data and click on add food it gives an error of SQL syntax error what's the problem help me plz ?
      Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near' image_name = ", c...' at line 4 in C:\xampp\htdocs\food-order admin\add-food.php:186 Stack trace: #0 C:\xampp\htdocs\food-order
      Plz help me in this

    • @newtechman1559
      @newtechman1559 Рік тому

      @@patilcreation4380 Having the same problem

  • @dejanpopov6637
    @dejanpopov6637 2 роки тому +17

    as for the error: $ext = end (explode ('.', $image_name)) ;.
    replace this one with:
    $image_info = explode (".", $image_name);
    $ext = end ($image_info);

  • @srinithis3749
    @srinithis3749 3 роки тому +1

    Worried about how to make a project with the basic knowledge of HTML,CSS and js....but u nailed it....now feeling confident that even I can create something....do post more and more videos.....

    • @VijayThapa
      @VijayThapa  3 роки тому +1

      I'm really glad that the tutorials were helpful to you.
      Now, it's my time to see all of your projects you'll be doing in future.
      And I'll also make new advanced courses.
      Best Wishes for Future Endeavors!

  • @emmysmith8960
    @emmysmith8960 4 роки тому +3

    master great works, best steps, i just love your way. keep the fire burning Thank u

    • @VijayThapa
      @VijayThapa  4 роки тому

      Thank you so much @Emmy for following the tutorials.
      And I'm really glad that you're enjoying the tutorials.
      Best Wishes!

  • @dhackmt
    @dhackmt 2 роки тому +1

    man love you
    i have my submission in 2 days i am using your tutorials from past 3 days super helpful simple easy you may you achieve more more wisdom i hope i get to help you someday tooo
    you use thats it alot its like it became predictable after some 2 videos
    how much i have leart about website making in these 3 days i havent learned that all my second year thanks man super helpful

    • @VijayThapa
      @VijayThapa  2 роки тому

      I'm really glad that the course is helpful to you.
      Thank you so much for following.
      Hope you complete all the courses soon.
      Best Wishes!

    • @dhackmt
      @dhackmt 2 роки тому

      its actually too foolish of me to ask ofc because you have just simply shown how u did and but im just unable to find it since idk anything about those errors i fixed all but i am really uable to fi x these

    • @VijayThapa
      @VijayThapa  2 роки тому

      @@dhackmt What error are you facing?

    • @dhackmt
      @dhackmt 2 роки тому

      @@VijayThapa categories img is not showing on home page and categories and food are not being updated rest whole website is working properly every bit of it thanks to you

    • @VijayThapa
      @VijayThapa  2 роки тому

      @@dhackmt Please email me at hi@vijaythapa.com with the screenshot of your error and code.

  • @livingtree5817
    @livingtree5817 3 роки тому +1

    You're really great Vijay Dai. Thank you so much for this tutorial.
    Love from Shillong, India🇮🇳🇳🇵

    • @VijayThapa
      @VijayThapa  3 роки тому

      I'm really glad that you enjoyed the tutorials.
      Thank you so much for your love and support.

  • @juliusalbano2439
    @juliusalbano2439 3 роки тому +4

    oh finally a video like this thx so much

    • @VijayThapa
      @VijayThapa  3 роки тому

      You're welcome @Julius Albano.
      And I'm really glad that you enjoyed the course.
      Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends.
      It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
      Thanks and Regards!

  • @hugobreno1816
    @hugobreno1816 4 роки тому +2

    Good man , you are doing a great job , keep it up and thanks for you to sharing it with us.

    • @VijayThapa
      @VijayThapa  4 роки тому +1

      It's my pleasure.
      And Thank You So Much for watching the tutorials. Also I'm really glad that the tutorials are really helpful to you.
      It would support this channel to Grow if you SHARE the videos with your friends and family.
      I'll continue to make more advanced courses for FREE as long as you watch them.
      Thanks and Regards!

  • @rishypatel154
    @rishypatel154 3 роки тому +1

    Thanks for your amazing explanation

  • @beautifullovelovelove
    @beautifullovelovelove 4 роки тому +9

    Finally found the full stack, a very excellent video, thank you, the owner, I hope you can keep updating it, thank you very much

    • @VijayThapa
      @VijayThapa  4 роки тому +2

      More to come!
      Thank you so much for following the videos and I'm really glad that you're enjoying the tutorials.
      Also It'd support this channel to grow if you SHARE it with your friends and family. And they would also get to learn Software and Web Development for FREE.
      Thanks and Regards!

  • @jorgesantamaria9091
    @jorgesantamaria9091 3 роки тому +2

    thank you so much for this tutorial. You are a great teacher :)

    • @VijayThapa
      @VijayThapa  3 роки тому

      You're very welcome!
      I'm really glad that the course was helpful to you.
      Also if you think the course could be helpful to others, then please SHARE with your family and friends.
      It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
      Thanks and Regards!

  • @wailik8783
    @wailik8783 3 роки тому +2

    $sn starts from 1 where if we delete something in the middle of the data it will be affected ( for example: if we have a row of 1-10 if we delete something in the middle like 5 it will become 1-9 where the original no6 will become no5) if we use $id, the number will be deleted as well in the database so we will not have no5 anymore and the table will look weird. (ps you taught us before in the previous videos with clear explanation !! ) Can't wait to complete this series

    • @VijayThapa
      @VijayThapa  3 роки тому

      I'm really happy and proud that you've understood every logic behind every code.
      Hope you've completed all the tutorials from this course by now.
      Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends.
      It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
      Thanks and Regards!

  • @bibekac
    @bibekac 2 роки тому +2

    while adding category, my variable is not accepting the value,
    if i set category_id = $category
    it does not take the data although i have kept the name correctly
    and if i set category_id = '$category'
    then only it accepts the data but all the value are 0
    category_id is in int form in db
    if i echo the title in the and change category_id to varchar then the category's data is being taken else not

    • @VijayThapa
      @VijayThapa  2 роки тому

      When data added on quote ' ', it becomes string.
      You might have error while passing the data.
      Check whether you've passed values in your select tag or not.
      If needed, watch the tutorial once again and compare the code.
      It might help you to find the error and fix it.
      Thanks and Regards!

  • @POOJAKUMARI-vl1my
    @POOJAKUMARI-vl1my Рік тому

    At 30:54 , i am not getting the categories data in the dropdown menu, i've checked the code many times but unable to find the problem,
    plzzzzzzz help me through this, i would really appreappciate

    • @VijayThapa
      @VijayThapa  Рік тому

      Please email me with the screenshot of your error and code at hi@vijaythapa.com

  • @bedesign8683
    @bedesign8683 3 роки тому +1

    thank you.it is very good😍😍😍😍😍

    • @VijayThapa
      @VijayThapa  3 роки тому

      Thank you so much.
      I'm really glad that you enjoyed the tutorials.
      Hope you completed all the tutorials.

  • @林家誉
    @林家誉 Рік тому

    I have question at 49:36 ,the image name at 'food' file is correct eg: Food-Name-XXXX . but when it show on my localhost DB are not same, It show me the name as image_name , this make me cannot display the images on manage food part. i check lot of time, the code is same with your😓

    • @VijayThapa
      @VijayThapa  Рік тому

      Please check your code at "if-else" statement while renaming the image.
      You might have missed something there.
      Best Wishes!

  • @thngamingshop1765
    @thngamingshop1765 2 роки тому +1

    Very helpful Video 👍

    • @VijayThapa
      @VijayThapa  2 роки тому

      Thank you so much.
      I'm really glad that the tutorials were helpful to you.
      Hope you complete all tutorials soon.
      Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends.
      It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
      Best Wishes!

  • @endone3661
    @endone3661 3 роки тому +2

    1:21:47 because in xampp it will continously increment so we need variable sn to increment it repeatedly starting to 1 :D

    • @VijayThapa
      @VijayThapa  3 роки тому

      That's right!
      I'm glad that you're learning in depth.
      Best Wishes!

  • @omarmostafa4368
    @omarmostafa4368 3 місяці тому +1

    Bro whene i enter the price he don't accepts the number with (,) he give me : please enter a valid value . Knowing that in data base the prace is decimal (10,2) and I bought the code yesterday ❤

    • @VijayThapa
      @VijayThapa  3 місяці тому +1

      Yes and decimal means "." - Full stop or Period. Not Comma ","
      ✅ Price should be in decimal like 10.20
      ❌ Not 10,20
      Please learn more about relational database as well.

    • @omarmostafa4368
      @omarmostafa4368 3 місяці тому

      @VijayThapa yes I mean "." Not"," .example when i enter 3.5 he give me : please enter a valid value 3 or 4

    • @VijayThapa
      @VijayThapa  3 місяці тому +1

      @@omarmostafa4368 It worked for everyone.
      Please email me at hi@vijaythapa.com with the screenshot of your error.

  • @olajidebello9175
    @olajidebello9175 28 днів тому

    hello vijay thapa, my category_id doesn't seem to be generating any info asides zero in my database
    every other thing working perfectly

    • @VijayThapa
      @VijayThapa  27 днів тому

      Did you mean "category_id" not inserted properly?
      In this case, you might have forgotten to make "category_id" auto increment while creating database.
      Please check it once.
      If needed, watch the tutorial on creating database for this project.
      Best Wishes!

    • @olajidebello9175
      @olajidebello9175 27 днів тому

      @@VijayThapa thank you for your swift reply sir, kindly check your mail sir, i sent a picture of the problem

  • @patilcreation4380
    @patilcreation4380 Рік тому

    I have an error in adding food when we not entered any data and click on add food it gives an error of SQL syntax error what's the problem help me plz ?
    Error in excute SQL query line in $res2
    Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near' image_name = ", c...' at line 4 in C:\xampp\htdocs\food-order admin\add-food.php:186 Stack trace: #0 C:\xampp\htdocs\food-order

    • @VijayThapa
      @VijayThapa  Рік тому +1

      We have not added validation to check whether the form is filled or not.
      So, it may cause errors.
      You can either use HTML validation or PHP validation (using if-else statement).
      Also learn fundamentals of Relational Database Management System.
      Best Wishes!

    • @patilcreation4380
      @patilcreation4380 Рік тому

      @@VijayThapa Tysm sir I have added the validation and it's working I have one more error of image printing on video no 9 I have comment u plz check it

    • @VijayThapa
      @VijayThapa  Рік тому

      @@patilcreation4380 Email me at hi@vijaythapa.com with the screenshots of your error and code.

  • @ckchuan9097
    @ckchuan9097 3 роки тому

    35:55, my submit button is no clicked, how can i do?

    • @VijayThapa
      @VijayThapa  3 роки тому

      Check your code once again.
      If needed, watch the tutorial once again and compare the code.
      It might help you to find the error and fix it.
      Best Wishes!

  • @chamilsachintha9698
    @chamilsachintha9698 3 роки тому +1

    thank you ❤

  • @rajivkardak8405
    @rajivkardak8405 2 роки тому

    how can i fix this error ?
    Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' image_name = '', ...' at line 4 in C:\xampp\htdocs\Restaurant\admin\add-food.php:221 Stack trace: #0 C:\xampp\htdocs\Restaurant\admin\add-food.php(221): mysqli_query(Object(mysqli), 'INSERT INTO tbl...') #1 {main} thrown in C:\xampp\htdocs\Restaurant\admin\add-food.php on line 221
    i have checked all my syntax properly . I'm around this part of the video 1:07:29

    • @VijayThapa
      @VijayThapa  2 роки тому

      Please email me at hi@vijaythapa.com with the screenshot of your error and code.

    • @rajivkardak8405
      @rajivkardak8405 2 роки тому

      @@VijayThapa yes sir i've mailed you already . i have sent you 2 mails . The first one was with only error Screenshot so i sent u another one with both error screenshot and my code.

    • @rajivkardak8405
      @rajivkardak8405 2 роки тому

      @@VijayThapa sir it's been 3 days since I mailed , can you please help me out it's urgent

    • @lezaanlouw1227
      @lezaanlouw1227 2 роки тому

      @@rajivkardak8405 I am hoping he can respond to my email too because i have a similar error

  • @papabears2387
    @papabears2387 2 роки тому +1

    Guys please help me. How can I display the category title here in Manage Food(tbl_foods)
    Im using input type="hidden" for $category_id but I cant display row['title'] from tbl_category

    • @VijayThapa
      @VijayThapa  2 роки тому +1

      You'll have to use that category id and use SQL query with WHERE keyword to get the category details (Category Title) and Display it.
      Like,
      $sql2="SELECT * FROM tbl_category WHERE id=$category_id"
      Best Wishes!

    • @papabears2387
      @papabears2387 2 роки тому +1

      @@VijayThapa thanks very much master

    • @papabears2387
      @papabears2387 2 роки тому +1

      master@@VijayThapa
      thanks sir it works

    • @papabears2387
      @papabears2387 2 роки тому

      now I will try to add a Users Login/SignUp System in front(not on SITEURL:admin.php), and make it auto populate in order.php

  • @ng.namrata
    @ng.namrata 2 роки тому

    Hello sir, as you have shown in the video ..1:04:06 inserting the data in database
    in my case the data is not inserting in database ..its showing "Failed to Add Food" .
    Can You please guide me regarding my query.

    • @VijayThapa
      @VijayThapa  2 роки тому

      Please email me at hi@vijaythapa.com with the screenshot of your error and code.
      Thanks and Regards!

    • @khaliddalman281
      @khaliddalman281 2 роки тому

      @@VijayThapa same problem here sir when I change my code to sql2 it doesn't add a food but when I try to remove the 2 in sql it successfully add food but the data is not inserted in database

    • @VijayThapa
      @VijayThapa  2 роки тому

      @@khaliddalman281 email me the screenshot of your error and code at hi@vijaythapa.com.
      Without looking at your code, I cannot suggest you anything.
      Thanks and Regards!

    • @khaliddalman281
      @khaliddalman281 2 роки тому

      @@VijayThapa hello Sir thank you for responding to my message, I already Emailed to you my error of my source code

  • @akramsarkar7008
    @akramsarkar7008 2 роки тому

    sir when we redirect to a particular page , from which page we have redirected this should die automatically as we will enter the page from beginning , shoudn't it sir???

  • @ramisrour6998
    @ramisrour6998 3 роки тому +1

    featured and active are saved in the database always as "on" what may be the problem?

    • @VijayThapa
      @VijayThapa  3 роки тому

      Please check the value of your featured and active input.
      The Value should be "Yes/No" not "on".
      You might have missed something there.
      If needed, watch the tutorial once again and compare the code.
      It might help you to find the error and fix it.
      Thanks and Regards!

  • @gonukumar2419
    @gonukumar2419 3 місяці тому

    buddy i dont know you may answer this question or not but want to know that there is an issue while apply menu and footer file maybe its quirk mode issue how to handle it idk i tried html doc type at start but maybe i m doing wrong or maybe im missing something its not stoping me but its ruining all the fun and look or what we are creating. what to do with this?

    • @VijayThapa
      @VijayThapa  3 місяці тому +1

      What's the error?

    • @gonukumar2419
      @gonukumar2419 3 місяці тому +1

      @@VijayThapa ''Thankyou for time.. it found out my mistake somehow my footer and header get "1" at the end. i mistakenly apply echo in both header and footer it leads me to this problem.. ThankYou bro your reply.. you are amazing ''❤❤🫂🫂

  • @breakthatdown
    @breakthatdown 3 роки тому

    I am facing error while renaming image..it says only variables should be passed by refrence in some code it works in some it dont...plz helf if you can

    • @VijayThapa
      @VijayThapa  3 роки тому

      You might be having other error than "only variables should be passed".
      Please let me know. This one is just a warning.
      Thanks and Regards!

  • @celinema0202
    @celinema0202 Рік тому

    Hi, there is an problem from my output on database as in the description does not show in the database. i had double check on the code and there is no errors on it, but the data which is the description key in in the system does not send to the database. Can i k ow what is the problem on it? Also the code does not let me to enter decimal numbers for price as in when i want to enter 7.50 it says need to enter a number without decimal, when i entered 7, the output will display 7.00, can I know is there any method for me to enter decimal number before adding food item?

    • @VijayThapa
      @VijayThapa  Рік тому

      You might have error in your SQL query or getting data from the form.
      Please check it once.
      If needed, watch the tutorial once again and compare the code.
      It might help you to find the error and fix it.
      Best Wishes!

    • @celinema0202
      @celinema0202 Рік тому +1

      @@VijayThapa Hi Sir, I've review the tutorial again but it seems that there isn't any problem with it. But its okay sir! I've remove the function for it and it goes well!

    • @celinema0202
      @celinema0202 Рік тому

      @@VijayThapa Sir, may I ask is there any tutorial on adding cart functions, and also user management functions such as sign in, login, forgot password? And cart functions too

    • @VijayThapa
      @VijayThapa  Рік тому +1

      @@celinema0202 May be in the new course. Not on this one.
      And if you've come so far, I hope you understood most of the concepts.
      So, I'd recommend you to add rest of the functions.
      Sign in is similar to Add User, Login is similar to Admin Login, you just need to first read articles behind the concept of forgot password and Cart, then you can try on your own.
      I'm sure you'll be able to add those features.
      Best Wishes!

    • @celinema0202
      @celinema0202 Рік тому +1

      @@VijayThapa Thank you sir! I'll try my best as in currently I had successfully developed login and sign-in page by connecting the database! Thank you so much on the tutorials as in I am a beginner of php. But after finish watching the tutorials, I had able to understand basics coding on php! Hope sir can do more tutorials as in your explanation is really simple to be understand by slow learners like me!

  • @sh4of4n65
    @sh4of4n65 2 роки тому

    May I know that your code is able to add XML into it? And how to use the XML code in your code? As I followed your every step to make my website.

  • @MrTaken-tl4bw
    @MrTaken-tl4bw 9 місяців тому

    I come from the future to ask to ask why not use a foreach loop to parse the query results
    like
    if (mysqli_num_rows($res_categories) > 0) {
    foreach ($res_categories as $res_category) {
    ....

  • @nayaniprasangika868
    @nayaniprasangika868 4 місяці тому

    Sir. I have got an issue with upload image .i did the same u did but it not upload the image browser but not showing error

    • @VijayThapa
      @VijayThapa  4 місяці тому

      You may have error in your code.
      Please check it once.
      If needed, watch the tutorial once again and compare the code.
      Best wishes!

  • @amirals9110
    @amirals9110 3 роки тому

    Hello @Vijay Thapa ! I followed along the clip and at 1:07:33 timestamp when I try to add food I get a warning: " Cannot modify header information - headers aleready sent..... the error is at the header inside if($res2==true)

    • @amirals9110
      @amirals9110 3 роки тому

      However, the food is still added in the database

    • @VijayThapa
      @VijayThapa  3 роки тому +1

      Try adding following code at the top of "constants.php" file
      ob_start();
      If you want to know more about the error and the code above, then please follow the link below
      www.vijaythapa.com.np/2021/08/how-to-fix-headers-already-sent-error.html
      Thanks and Regards!

    • @amirals9110
      @amirals9110 3 роки тому +1

      @@VijayThapa it worked, thanks man

    • @VijayThapa
      @VijayThapa  3 роки тому +1

      @@amirals9110 You're welcome Bro!
      Also if you think the tutorials could be helpful to others, then please SHAR with your family and friends.
      It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
      Thanks and Regards!

  • @ayman1624
    @ayman1624 Рік тому

    help please . im getting an error when clicking on add food button . Data is inserted in db but i get an error message saying : Only variables should be passed by reference in this line $ext=end(explode('.',$image_name));

    • @harshadathakur8067
      @harshadathakur8067 Рік тому

      Someone comment solution for this try that code
      Did ur images displayed in manage food page ?

    • @VijayThapa
      @VijayThapa  Рік тому

      That's just a warning.
      You may have more message.
      Please email me at hi@vijaythapa.com with the screenshot of your error and code.
      Thanks and Regards!

    • @VijayThapa
      @VijayThapa  Рік тому

      If image is not displayed, then check
      1. Whether the image_name is added in database or not
      2. Whether the image file is uploaded on folder or not
      3. Whether the image path while displaying the image is correct or not.
      Best Wishes!

  • @UDAYCHOWDHURYAEICO
    @UDAYCHOWDHURYAEICO Рік тому

    Sir how to change the dollar symbol to rupees which part is in the video pls tell the point

    • @VijayThapa
      @VijayThapa  Рік тому

      Just open the file where you want to change, then replace the dollar sign manually.

  • @yuvahrajthillaikumar2278
    @yuvahrajthillaikumar2278 3 роки тому +1

    Good day sir, Could please assist me! Im getting these 2 error in my add food !
    Notice: Only variables should be passed by reference in C:\xampp\htdocs\market\Admin\addfood.php on line 138
    Fatal error: Uncaught Error: Undefined constant "SITEURL" in C:\xampp\htdocs\market\Admin\addfood.php:176 Stack trace: #0 {main} thrown in C:\xampp\htdocs\market\Admin\addfood.php on line 176

    • @VijayThapa
      @VijayThapa  3 роки тому

      You might have error in your redirect URL.
      Please check whether SITEURL constant is connected and used correctly or not.
      If needed, watch the tutorial once again and compare the code.
      It might help you to find the error and fix it.
      Best Wishes!

  • @celinema0202
    @celinema0202 Рік тому

    Hi, can I know what is the difference between which is open php and close it, and ?>

    • @VijayThapa
      @VijayThapa  Рік тому +1

      To fix this error, just put the following code at the top of constants.php file
      ob_start();
      If you want to read more about the code and error, then follow the link below
      www.vijaythapa.com.np/2021/08/how-to-fix-headers-already-sent-error.html
      Best Wishes!

    • @celinema0202
      @celinema0202 Рік тому +1

      @@VijayThapa thank you sir for the website and your guide! the problem is solved🥰

  • @anonymous-sh9jc
    @anonymous-sh9jc 2 роки тому

    the $ext is not working the image is renamed as .Array not .jpg
    can u help me ?
    and one thing, the food is added successfully and it shows in the DB but in the visual studio code it does nor appear under the food folder why?

    • @VijayThapa
      @VijayThapa  2 роки тому

      Try checking the code once again while renaming the image.
      If needed, watch the tutorial once again and compare the code.
      It might help you to find the error and fix it.
      Thanks and Regards!

  • @vikisneakers
    @vikisneakers 3 роки тому

    I think the reason for not using $id and opting for for $sn is because in the db $id its auto incremented,,and when we delete any row in the manage food.php the rows will have unordered numbering since they obtain the numbering valuation from the db.

    • @VijayThapa
      @VijayThapa  3 роки тому +1

      💯 Correct.
      I'm really glad that you're understanding the basic concepts and logics clearly.
      Best Wishes!

    • @vikisneakers
      @vikisneakers 3 роки тому +1

      @@VijayThapa All thanks to you😊

    • @VijayThapa
      @VijayThapa  3 роки тому

      @@vikisneakers You're welcome Bro.
      Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends.
      It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
      Thanks and Regards!

  • @RaymondEsposo-w3m
    @RaymondEsposo-w3m Рік тому

    sir why does if I included and image when i'm adding new product, it wont be uploaded/recorded to the database but if i didn't inclue and image it will be recorded to the database, pls help ty!

    • @VijayThapa
      @VijayThapa  Рік тому +1

      You might have error in your if-else statement.
      Please check it once.
      If needed, watch the tutorial once again and compare the code.
      It might help you to find the error and fix it.
      Best Wishes!

    • @RaymondEsposo-w3m
      @RaymondEsposo-w3m Рік тому +1

      @@VijayThapa thanks i already found the error. Your videos are great and keep doing it it really helps. God bless you!

  • @salonichouhan615
    @salonichouhan615 4 роки тому +1

    Sir, I have a doubt
    There is a notice displaying on my manage food
    Notice: Only variables should be passed by reference on the line
    $ext = end(explode('.' , $image_name));
    What should I do now. But my data us adding successfully in the database.

    • @manojupadhya2001
      @manojupadhya2001 4 роки тому

      I'm facing the same issue.....

    • @nouhailakhaouti9018
      @nouhailakhaouti9018 3 роки тому

      @@manojupadhya2001 me too

    • @Aleksandar-hm8nf
      @Aleksandar-hm8nf 3 роки тому

      This is right my problem Sir...

    • @auragaming6139
      @auragaming6139 3 роки тому +1

      Fix
      $ext = explode(".", $image_name); // lay duoc jpg
      $file_extension = end($ext);
      $image_name = "Food_Name_" . rand(0000, 9999) . '.' . $file_extension;

    • @ayumasyitah5742
      @ayumasyitah5742 3 роки тому

      @@auragaming6139 heyy Thank youu it's work for me

  • @soself_learner412
    @soself_learner412 3 роки тому +1

    31:57 base on my understanding for value="" . The $ is php syntax so we need to write it as . Am I right ??

  • @whiteboy5652
    @whiteboy5652 3 роки тому

    Hello Mr. Vijay, i have an error message when that says (Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\RentalSystem\admin\add-vehicles.php:124)) This is when submitting the form and it's nor redirecting but the data is added. Any Idea!!

    • @VijayThapa
      @VijayThapa  3 роки тому

      To fix this issue, add the following code at the top of “constants.php”
      ob_start();
      If you want to know more about this code and error, then follow the link below
      www.vijaythapa.com.np/2021/08/how-to-fix-headers-already-sent-error.html
      Thanks and Regards!

  • @shrutisinha-p1g
    @shrutisinha-p1g Рік тому

    Sir, My data in not getting inserted into the database. i have checked every detail, sql query upload if else statement , i cant find the error. Please help anyone if knows whats wrong with my code. Also my image is getting uploaded in the food folder. It's urgent guys please help if anybody knows the answer.

    • @VijayThapa
      @VijayThapa  Рік тому

      What error message do you get?

  • @haziqhilmiasri9684
    @haziqhilmiasri9684 2 роки тому

    Hello vijay I hope you doing well! i have some notice or error at $ext = end(explode('.', $image_name));. it say that "only variables should be passed by reference", can i know why its say that and it cant redirect to manage-food also but still the data in the form was uploaded in the php

    • @VijayThapa
      @VijayThapa  2 роки тому

      It's just a warning.
      You may also have another error message.
      Please let me know.
      Thanks and Regards!

  • @FitNation-u9x
    @FitNation-u9x 3 роки тому

    sir in 7 th lecture image upload but not show in database i am write esi it code but no image upload in food folder or database

    • @VijayThapa
      @VijayThapa  3 роки тому

      Please check the code once again at image uploading section.
      You might have error there.
      Also check carefully at if-else section and curly brackets as well.
      If needed, watch the tutorial once again and compare the code.
      It might help you to find the error and fix it.
      Best Wishes!

    • @feet_investigatorr
      @feet_investigatorr 2 роки тому

      Did u find any solution? Please help me with it , I'm also stuck at it

  • @aayushsingh4936
    @aayushsingh4936 8 місяців тому

    Cannot modify header information - headers already sent by how solve this error

    • @VijayThapa
      @VijayThapa  8 місяців тому

      Just add following code at the top of "constants.php".
      ob_start();
      And if you want to know more about the error and this code, then please follow the link below
      www.vijaythapa.com.np/2021/08/how-to-fix-headers-already-sent-error.html
      Best Wishes!

  • @navyaiyer533
    @navyaiyer533 Рік тому

    Sir , in add food page description and category is not showing sir it's coming 0 in local host what to do sir 😢

    • @VijayThapa
      @VijayThapa  Рік тому +1

      Please check the code on displaying the category.
      You might have error there.
      If needed, watch the tutorial once again and compare the code.
      It might help you to find the error and fix it.
      Best Wishes!

    • @navyaiyer533
      @navyaiyer533 Рік тому +1

      @@VijayThapa ok sir

  • @urdreamspace
    @urdreamspace 2 роки тому +1

    There is an error saying, that the food cannot be added I really dnt know why and I have crosschecked with your code

    • @VijayThapa
      @VijayThapa  2 роки тому

      Email me at hi@vijaythapa.com with the screenshot of your error and code.
      Thanks and Regards!

  • @GabeX143
    @GabeX143 10 місяців тому

    Hello, I am currently enjoying learning this but I am stuck. I cannot get any data into the database yet there is no error. please help.

    • @VijayThapa
      @VijayThapa  10 місяців тому

      What and when do you not get data?
      Try checking your code.
      If needed watch the tutorial once again and compare your code with mine.
      It might help you to find the error and fix it.
      Best Wishes!

  • @sajeedansari5136
    @sajeedansari5136 2 роки тому

    Hello sir
    I am facing
    Forbidden
    You don't have permission to access this resource.
    Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/8.1.12 Server at localhost Port 80
    this error .

    • @VijayThapa
      @VijayThapa  2 роки тому

      First Check whether your MySQL and Apache is running or not in your XAMPP.
      Then check your redirect URL.
      If needed, watch the tutorial once again and compare the codee.
      It might help you to find the error and fix it.
      Best Wishes!

  • @humeraabbasi9426
    @humeraabbasi9426 2 роки тому

    Food order website tutorial 7 i have face some issue. in add food pictures select from food folder are only displaying and picture from desktop are not displaying in manage-food page. kindly guide.

    • @VijayThapa
      @VijayThapa  2 роки тому

      First, Check whether your image is uploaded successfully or not.
      And also check whether the image_name is saved on database or not.
      If needed, watch the tutorial once again and compare the code.
      It might help you to find the error and fix it.
      Thanks and Regards!

  • @Duri12298
    @Duri12298 Рік тому

    bro please can i somehow give u my code for this part because my code is saying failed to upload

    • @Duri12298
      @Duri12298 Рік тому

      i fixed all my other problems but I cant figure this out

    • @VijayThapa
      @VijayThapa  Рік тому

      What's the error?

  • @NewsThatsUsed
    @NewsThatsUsed 3 роки тому

    Hi, I have a need to put an apostrophe in my Titles, but when I do, it doesn't write to the database. If I don't use an apostrophe everything works well. Can you help with allowing an apostrophe in the Title? Thank you

    • @VijayThapa
      @VijayThapa  3 роки тому

      Watch the episode 13, it'll solve the problem.
      You just need to use mysqli_real_escape_string() function

    • @NewsThatsUsed
      @NewsThatsUsed 3 роки тому

      @@VijayThapa Thank you for your quick reply. I'm looking forward to it. I would jump ahead but this is so interesting. Thank you

  • @GunjanTewani
    @GunjanTewani 11 місяців тому

    Hello sir
    In this tutorial my price and category_id is not inserted into database

    • @VijayThapa
      @VijayThapa  11 місяців тому

      You may have error in your code.
      Please check it once.
      Either while passing the data from form or on SQL query.
      If needed, watch the tutorial once again and compare the code.
      It might help you to find the error and fix it.
      Best Wishes!

  • @judieackaahgyasi7998
    @judieackaahgyasi7998 8 місяців тому

    Your tutorial is the best. Followed each step and it's working perfectly. But when I got to the add food section it keeps telling me it's forbidden and that I don't have access to that page

    • @VijayThapa
      @VijayThapa  8 місяців тому

      Then you have an error in your "Add Food" URL (link).
      Please check your code once.
      If needed, watch the tutorial once again and compare the code.
      It might help you to find the error and fix it.
      Best Wishes!

    • @judieackaahgyasi7998
      @judieackaahgyasi7998 8 місяців тому +1

      @@VijayThapa Thank you so much

  • @yogeshyadav2525
    @yogeshyadav2525 3 роки тому

    move_uploaded_file() isn't working when I give destination path as "../images/food/".$image_name but works when given as "../images/food".$image_name. please have a look at this problem

    • @VijayThapa
      @VijayThapa  3 роки тому +1

      Please check the value of $image_name.
      Does it contain "/" in front of the value?
      Watching the tutorial once again and comparing the code might help you to find the bug and fix it.
      Best Wishes!

    • @yogeshyadav2525
      @yogeshyadav2525 3 роки тому

      @@VijayThapa I have two folders inside images 1.category 2.food. when I am using category folder everything works but when I am working on food folder image is not getting copied there . I have checked the permission for food folder and it's 777 in Linux . Don't know what's happening

    • @VijayThapa
      @VijayThapa  3 роки тому +1

      @@yogeshyadav2525 You might have missed something, either on form or on the code after submit button.
      Please check once or email me at hi@vijaythapa.com
      Thanks and Regards!

  • @hussainhakimi8028
    @hussainhakimi8028 3 роки тому

    Hello sir!
    Thank you for your complete and greate toturial
    I have a problem with renaming the images, my phpstorm don't know the end function and show an error.

    • @VijayThapa
      @VijayThapa  3 роки тому

      Did you write the code as I've shown?
      Do you get error while adding foods?
      Sometime text editor might not know exact built in functions in a programming language.
      You can always check the documentation of any language when in doubt.
      end function in PHP - www.php.net/manual/en/function.end.php
      Best Wishes!

  • @Lightologyy
    @Lightologyy 4 роки тому +1

    Thank you so much

  • @josephbirara2493
    @josephbirara2493 2 роки тому

    Thank u sir for your tutorial. but I have got an issue with uploading an image. i did the same u did but it says failed to upload an image. any help pls

    • @VijayThapa
      @VijayThapa  2 роки тому

      Please check your code once.
      If needed, watch the tutorial once again and compare the code.
      It might help you to find the error and fix it.
      Thanks and Regards!

    • @nayaniprasangika868
      @nayaniprasangika868 4 місяці тому

      Sir. I have got an issue with upload image .i did the same u did but it not upload the image browser but not showing error

  • @aregmi450
    @aregmi450 3 роки тому

    I have a proble while adding food it always shows food not added after i clck the add food button, i don't know where is the problem here

    • @VijayThapa
      @VijayThapa  3 роки тому

      You might have error either on
      1. Getting the correct values from Form
      2. Your SQL Query (Database Columns and Values)
      3. Executing the query and checking with if-else statement
      Please watch the tutorial once again and compare the code.
      It might help you to find the error and fix it.
      Best Wishes!

  • @aqqilhaziq2741
    @aqqilhaziq2741 3 роки тому

    Hello sir, what is the function of featured and active for both food and category? hope u can help. Thank you😊

    • @VijayThapa
      @VijayThapa  3 роки тому

      Please watch the video from the link below
      ua-cam.com/video/GxCh9B0ZU6E/v-deo.html

  • @Riya-ls1kv
    @Riya-ls1kv 2 роки тому

    32:08
    yes sir i want to know about that.. please tell

    • @VijayThapa
      @VijayThapa  2 роки тому

      It's because "Title is changeable. It can be updated. But ID remains permanent."
      So if you know the fundamental properties of Primary and Foreign Key, and their relationship, then it must be clear to you now.
      i.e.
      Primary key should always be Unique and constant (Permanent) and Foreign key must be primary key of another table.
      Hope you understand now, else please read more about relational database.
      Thanks and Regards!

  • @HiTmAn47-39a
    @HiTmAn47-39a Рік тому +1

    Sir how can we display the price in Indian currency

    • @VijayThapa
      @VijayThapa  Рік тому

      Go to the file where you're displaying price
      Then just replace the dollar sign with Indian Rupee.

  • @harshyadav4307
    @harshyadav4307 3 роки тому

    Sir I'm getting error at 1:07:45 Failed to add food please help sir!

    • @VijayThapa
      @VijayThapa  3 роки тому +2

      Then you might have error
      1. on getting the data
      2. uploading the image
      3. SQL Query
      4. If-Else Condition
      Try watching the tutorial once again and compare the code.
      It might help you to find the error and fix it.
      Best Wishes!

    • @harshyadav4307
      @harshyadav4307 3 роки тому

      @@VijayThapa ohkay thank you sir

    • @harshyadav4307
      @harshyadav4307 3 роки тому

      ​@@VijayThapa Sir I've checked my code till 1:06:52 I'm getting no error but as I change the value of $res2=mysqli_query($conn, $sql) to $res2=mysqli_query($conn, $sql2) I'm getting error failed to add food please help sir!

    • @adnan0206
      @adnan0206 3 роки тому

      @@harshyadav4307 $sql2 = "INSERT INTO tbl_food SET
      title = '$title',
      description = '$description',
      price = $price,
      image_name = '$image_name',
      category_id = $category,
      featured = '$featured',
      active = '$active'
      ";
      paste this query

  • @sureddimani
    @sureddimani 3 роки тому

    sir ,
    I have a problem while adding food it always shows Failed to add food after I click the add food button, and the data also was not saving in the database after executing $res2 = mysqli_query($conn, $sql2); and the image is uploading in the ../images/food/
    i don't know where is the problem there

    • @VijayThapa
      @VijayThapa  3 роки тому

      Please check the code once again.
      If needed, watch the tutorial and compare the code.
      It might help you to find the error and fix it.
      Best Wishes!

    • @laurakagaba
      @laurakagaba 2 роки тому

      @@VijayThapa Hello Sir, I'm having the same problem even after rewatching the tutorial and comparing the code
      Please Help Me!!

    • @laurakagaba
      @laurakagaba 2 роки тому

      @sureddi mani1999 did you find a solution to your problem???

    • @VijayThapa
      @VijayThapa  2 роки тому

      @@laurakagaba Please email me at hi@vijaythapa.com with the screenshot of your error and code.
      Thanks and Regards!

    • @laurakagaba
      @laurakagaba 2 роки тому

      @@VijayThapa Done Sir

  • @fitsumgetu3070
    @fitsumgetu3070 2 роки тому

    Hello
    I can't enter image in database by using your system but it doesn't help me, can you tell me another way??

    • @VijayThapa
      @VijayThapa  2 роки тому

      Email me at hi@vijaythapa.com with the screenshot of your error and code.
      Thanks and Regards!

    • @feet_investigatorr
      @feet_investigatorr 2 роки тому

      Hey bro did u find any solution? I'm stuck at this and can't seem to find any solution. My image is not uploading in database as well as in the folder

  • @snehalpatil2001
    @snehalpatil2001 3 роки тому

    I am having an error at the image name extension part. Error-Name can take only variable. But changes are visible in database. Also it is not redirecting to manage food page. Please help

    • @VijayThapa
      @VijayThapa  3 роки тому

      It might just be an warning.
      The actual error might be on redirection.
      Please check the code there.
      If needed, watch the tutorial once again and compare the code.
      It might help you to find the Error and Fix It.
      Thanks and Regards!

    • @snehalpatil2001
      @snehalpatil2001 3 роки тому +1

      @@VijayThapa Thank you so much!!the error is solved. There was mistake in my redirection location😅

    • @VijayThapa
      @VijayThapa  3 роки тому +1

      Hope you complete all the tutorials soon.
      Best Wishes!

    • @francoisum3361
      @francoisum3361 3 роки тому

      @@snehalpatil2001 hello, how did u fixed it?

  • @carlapaulasanchez1679
    @carlapaulasanchez1679 2 роки тому

    Sir why is it whenever I put sql2 in executing the query I received Notice: Only Variables Shoul be passes by reference in C:\xampp\htdocs\food-order\admin\add-food.php on line 173

    • @VijayThapa
      @VijayThapa  2 роки тому

      Do you get any other error?
      Is your functionality not working?

    • @carlapaulasanchez1679
      @carlapaulasanchez1679 2 роки тому

      Yes sir i have other error.
      Notice: Only variables should be passed by reference in C:\xampp\htdocs\food-order\admin\add-food.php on line 173
      Fatal error: Uncaught mysqli_sql_exception: Unknown column 'title' in 'field list' in C:\xampp\htdocs\food-order\admin\add-food.php:224 Stack trace: #0 C:\xampp\htdocs\food-order\admin\add-food.php(224): mysqli_query(Object(mysqli), 'INSERT INTO tbl...') #1 {main} thrown in C:\xampp\htdocs\food-order\admin\add-food.php on line 224

    • @carlapaulasanchez1679
      @carlapaulasanchez1679 2 роки тому

      I can't move on to the next episodes because of this errors please help me sir

    • @carlapaulasanchez1679
      @carlapaulasanchez1679 2 роки тому

      I already saw my error sir and fixed it! Thank you again sir!

    • @VijayThapa
      @VijayThapa  2 роки тому

      @@carlapaulasanchez1679 Please email me at hi@vijaythapa.com with the screenshot of your error and code.

  • @masummushfiq5427
    @masummushfiq5427 3 роки тому

    Sir, I have a Problem
    Fatal error: Uncaught Error: Call to undefined function unlike() in C:\xampp\htdocs
    estaurant-mangement\admin\delete-category.php:17 Stack trace: #0 {main} thrown in C:\xampp\htdocs
    estaurant-mangement\admin\delete-category.php on line 17
    How do I fix it?

    • @VijayThapa
      @VijayThapa  3 роки тому +1

      I thin the error is while removing the image file.
      It’s because the function name is unlink(); ✅
      Not unlike() ❌
      Hope you got it.
      Best Wishes!

    • @masummushfiq5427
      @masummushfiq5427 3 роки тому

      Sir thanks for your response

  • @The_boss_havrn
    @The_boss_havrn 2 роки тому

    sir please make tutiorials for node js and mango db

  • @dhilipkumar5687
    @dhilipkumar5687 3 роки тому

    Sir $Image_name did not come in database and no images in food folder how to solve the problem

    • @VijayThapa
      @VijayThapa  3 роки тому

      Please check the code once gain. If needed watch the tutorial again and compare the code.
      It might help you to find the error and fix it.
      And if you couldn't fix the error, then email me at hi@vijaythapa.com with the screenshot of your error and code.
      Best Wishes!

    • @feet_investigatorr
      @feet_investigatorr 2 роки тому

      Hey bro did u find any solution? I'm stuck at this problem , please if u found anything please let me know

  • @bleronmexhuani327
    @bleronmexhuani327 3 роки тому

    Why are we using value = and not value ?

    • @VijayThapa
      @VijayThapa  3 роки тому

      In Which Section?
      Anyway ID is always Unique but there might be more than 1 item with the same name.
      Please learn more about Relational Databases.
      Best Wishes!

    • @bleronmexhuani327
      @bleronmexhuani327 3 роки тому +1

      At 28:18 ,thank you very much ,i understand it now !

  • @SinghPratyush10
    @SinghPratyush10 2 роки тому

    I dont know why but my image is not uploading every single content is updated in the table apart from image_name and image is also not uploading in the food folder. Sir please help.

    • @VijayThapa
      @VijayThapa  2 роки тому +1

      do you get any error messages?

    • @SinghPratyush10
      @SinghPratyush10 2 роки тому

      @@VijayThapa i figured it out sir.... thanks.

    • @feet_investigatorr
      @feet_investigatorr 2 роки тому

      @@SinghPratyush10 hey bro please help me with this , I'm also stuck with this problem for quite some time now and I'm not able to figure out a solution. I'm facing the same issue as u mentioned.

    • @SinghPratyush10
      @SinghPratyush10 2 роки тому

      @@feet_investigatorr I have to look at it again bro....give me some time...its been 6 months and I don't remember what i did back then. I will get back to you after looking at the project again

    • @feet_investigatorr
      @feet_investigatorr 2 роки тому

      @@SinghPratyush10 yeah sure no problem but please lemme know a lil sooner cuz I'm actually in a hurry rn. I Hope You'll help me out 😇

  • @spkcuts7189
    @spkcuts7189 3 роки тому

    Sir how to remove the decimal digits in the price i just want to display only the number without decimal like ₹100 but not ₹100.00

    • @VijayThapa
      @VijayThapa  3 роки тому +1

      In your database use int data type instead of decimal.

  • @musazaman1257
    @musazaman1257 2 роки тому

    Hello sir
    In add-food section data is save into database ,and as well as in the folder i created
    But but in tab it won't redirect to manage food
    And give error ,,
    Only variables should be passed by reference 😑

    • @musazaman1257
      @musazaman1257 2 роки тому

      I checked my code several times but didn't find error

    • @VijayThapa
      @VijayThapa  2 роки тому

      Please send me the screenshot of your error message and code at hi@vijaythapa.com
      Thanks and Regards!

  • @sagarnayak1577
    @sagarnayak1577 3 роки тому

    sir i am getting error "Failed to add shoe". i am making a shoe order website. plz guide me. can i send the code and the db ss??

    • @VijayThapa
      @VijayThapa  3 роки тому

      Please watch the video once again and try to compare the code.
      It might help you to find the bug ad fix it.
      Best Wishes!

    • @sagarnayak1577
      @sagarnayak1577 3 роки тому +1

      @@VijayThapa sir i got the solution . bug was in the database. thank you for your support.

    • @VijayThapa
      @VijayThapa  3 роки тому

      @@sagarnayak1577 You're welcome!

    • @syazwaninadhirah9203
      @syazwaninadhirah9203 3 роки тому

      @@sagarnayak1577 can you tell me what the error? im still cannot add the item

  • @zayarlwin9352
    @zayarlwin9352 2 роки тому

    sir i cannot go to browse in phpmyadmin why? please answer me

    • @zayarlwin9352
      @zayarlwin9352 2 роки тому

      and failed to add food

    • @VijayThapa
      @VijayThapa  2 роки тому

      If you cannot go to phpmyadmin, then you might have error in your local server (XAMPP).
      If failed to add food, then you might have error somewhere in you code. Watch the tutorial once again and compare the code.
      It might help you to find the error and fix it.
      Thanks and Regards!

  • @TechnoArt_by_HiraSultani
    @TechnoArt_by_HiraSultani 3 роки тому +1

    Thank you sir you're awesome teacher and great tutorial series I recommend it specially beginners will learn a lot here do like, share, and subscribe...

  • @alinaalina3725
    @alinaalina3725 3 роки тому

    Hello sir. I have a problem with renaming images. I cpoied everything from your video, but it is giving just 0 in database instead of Food-Name. Could you help me please?

    • @VijayThapa
      @VijayThapa  3 роки тому

      Don't just copy the codes. Try to understand them as well.
      Please check the code ones again.
      Are you getting the correct image name from image selection button?
      If you're not getting the image name after selecting, other things won't work.
      Check your if-else conditions.
      If needed, watch the tutorial once again and compare the code.
      It might help you to find the error and fix it.
      Best Wishes!

    • @alinaalina3725
      @alinaalina3725 3 роки тому +1

      @@VijayThapa thank you. I solved my problem. I did not give image_name in Mysql varchar, that is why it was not renaming and uploading

    • @VijayThapa
      @VijayThapa  3 роки тому

      @@alinaalina3725 You're Welcome.
      Best Wishes!

    • @feet_investigatorr
      @feet_investigatorr 2 роки тому

      @@alinaalina3725 heyy please can u elaborate it ? I'm facing the same issue where my image is not getting updated in food folders as well as in database also sometimes when I only pass an image i get a SQL query error

  • @abdurrehmanshaikh6868
    @abdurrehmanshaikh6868 2 роки тому

    Sir I'm stuck at one place!
    That my image_name is not showing in database I've understand everything and i checked the code 3 times but still can't find anything, please help!
    Note : I'm not getting any error too!

    • @VijayThapa
      @VijayThapa  2 роки тому

      Did you mean, image not saved in database?

    • @abdurrehmanshaikh6868
      @abdurrehmanshaikh6868 2 роки тому

      @@VijayThapa Yes, it wasn't saving in database but I figured it out now...
      Thanks for cooperation!

    • @feet_investigatorr
      @feet_investigatorr 2 роки тому

      Hey dude can u please help me with the solution? I'm also stuck at one place , my image is not uploading in database as well as in food folder . I'm also getting an Sql exception.

    • @abdurrehmanshaikh6868
      @abdurrehmanshaikh6868 2 роки тому

      @@feet_investigatorr bro it might be fault in making the sql query I think...
      Check if it's work.

    • @feet_investigatorr
      @feet_investigatorr 2 роки тому

      @@abdurrehmanshaikh6868 no bro the SQL query syntax is correct . You said you figured it out so what was the error in ur code?

  • @nyyatee3963
    @nyyatee3963 3 роки тому

    Images for add food page are not uploading, and $res2 not executing, help

    • @VijayThapa
      @VijayThapa  3 роки тому

      Please check your enctype property for your form.
      And watching the tutorial once again and comparing your code might be helpful to you to find the bug and fix it.
      Best Wishes!

    • @nyyatee3963
      @nyyatee3963 3 роки тому +1

      Can I get the full code zip??

    • @VijayThapa
      @VijayThapa  3 роки тому

      @@nyyatee3963 Email me at hi@vijaythapa.com

    • @nyyatee3963
      @nyyatee3963 3 роки тому

      I found my error, the names in db did not match in my code😂

    • @VijayThapa
      @VijayThapa  3 роки тому +1

      @@nyyatee3963 Congrats!
      Now, you'll complete the course soon.
      Best Wishes!

  • @georgehayden2168
    @georgehayden2168 3 роки тому

    How do you prevent the text on the Manage Menu Page from pushing the Action Button text to the next line?

    • @VijayThapa
      @VijayThapa  3 роки тому

      What do you mean?
      I couldn't understand?
      Can you be more clear please?

    • @georgehayden2168
      @georgehayden2168 3 роки тому

      Whenever you add more than 9 columns, the "Delete Category" get push to the next line. Is there away to prevent that from happening?

    • @VijayThapa
      @VijayThapa  3 роки тому

      @@georgehayden2168 Give custom width to individual column.

    • @georgehayden2168
      @georgehayden2168 3 роки тому

      Thanks

  • @SachinGupta-dh1cf
    @SachinGupta-dh1cf 2 роки тому

    You can also use pathinfo() function for getting extension of file.।।

    • @VijayThapa
      @VijayThapa  2 роки тому

      Thank you @Sachin for the suggestion.
      I really appreciate it.

    • @SachinGupta-dh1cf
      @SachinGupta-dh1cf 2 роки тому

      @@VijayThapa my pleasure.।।

  • @jaquilynwalawala419
    @jaquilynwalawala419 3 роки тому

    can you fix this in this code $ext = end(explode('.', $image_name));
    this is the error Notice: Only variables should be passed by reference in C:\xampp\htdocs\food-order\admin\add-food.php on line 163 please help

    • @VijayThapa
      @VijayThapa  3 роки тому

      Send me screenshot of your error message at hi@vijaythapa.com

    • @jaquilynwalawala419
      @jaquilynwalawala419 3 роки тому +1

      @@VijayThapa I can't send an image on @vijaythapa.com i already sent you my problem there.
      $ext = end(explode('.', $image_name));
      this is the error Notice: Only variables should be passed by reference in C:\xampp\htdocs\food-order\admin\add-food.php on line 163 that is my problem

    • @VijayThapa
      @VijayThapa  3 роки тому

      @@jaquilynwalawala419 That's a warning not error.
      So you must have other error as well.
      Please check that as well.

    • @ShamsSultan-lg5sr
      @ShamsSultan-lg5sr 3 роки тому +1

      @@jaquilynwalawala419
      $ext = explode('.',$image_name);
      $ext = end($ext);
      You can try this.

  • @raihanmasdal7493
    @raihanmasdal7493 2 роки тому

    good day sir, I emailed u about my problem in this part 1:07:42 pls help me sir thankyou

    • @VijayThapa
      @VijayThapa  2 роки тому

      Hope you received my email.

  • @aizleclairehermosa1691
    @aizleclairehermosa1691 2 роки тому +1

    I watched your tutorial
    And it's very helpful in our project
    But can I ask a question
    How to fix if there's a notice like this only variables should be passed by reference in c:\xampp\htdocs\system\admin\add-food.php
    And have a warning like this
    Cannot modify header information

    • @VijayThapa
      @VijayThapa  2 роки тому

      Just add the following code at the top of "constants.php" file
      ob_start();
      If you want to know more about the error and this code, then please follow the link below
      www.vijaythapa.com.np/2021/08/how-to-fix-headers-already-sent-error.html
      Thanks and Regards!

  • @urdreamspace
    @urdreamspace 2 роки тому +1

    Sir can we get the source code to this video I can't really seem to debug the issue😭

    • @VijayThapa
      @VijayThapa  2 роки тому

      Email me at hi@vijaythapa.com with the screenshot of your error and code.

  • @usamamunir7678
    @usamamunir7678 3 роки тому

    what would be the query if we want to display category ?

    • @VijayThapa
      @VijayThapa  3 роки тому

      Same as Foods, just replace the table name.
      Please watch all the tutorials from 1-12, you'll understand the flow of this project.
      Best Wishes!

  • @georgehayden2168
    @georgehayden2168 3 роки тому

    Do you have any examples of "Add & Remove Table Rows Dynamically and inserting the data into MySQL using PHP"?

    • @VijayThapa
      @VijayThapa  3 роки тому

      Have you watched all the tutorials (12) in this course?

    • @georgehayden2168
      @georgehayden2168 3 роки тому

      It is not there in (12). I would like to add/delete Table Rows Dynamically. After adding all Rows, then insert into database

    • @georgehayden2168
      @georgehayden2168 3 роки тому +1

      I found it and added it to my project. Thanks for the information.

  • @mariojreige4973
    @mariojreige4973 3 роки тому

    i have an error.. the food added successfully but my image didn't show in my database and in my food folder what is my faul?

    • @mariojreige4973
      @mariojreige4973 3 роки тому

      please reply when u can

    • @VijayThapa
      @VijayThapa  3 роки тому

      In database we only save the name of the image.
      You might have one of the following errors
      1. Failed to Upload the Image
      2. The link to display the image is wrong
      So, please check the video once again more carefully.
      It might help you to find the bug and fix it.
      Best Wishes!

    • @mariojreige4973
      @mariojreige4973 3 роки тому +1

      @@VijayThapa thank you

    • @VijayThapa
      @VijayThapa  3 роки тому +1

      @@mariojreige4973 Thank you so much for following my courses.
      Hope they were helpful to you.
      Also if you think they could be helpful to others, then please SHARE with your family and friends.
      It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
      Thanks and Regards!

    • @mariojreige4973
      @mariojreige4973 3 роки тому

      @@VijayThapa yes of course thank you so much again, and i want to ask you if you can continue this website on your next work and update it to advanced php like ajax jquery.

  • @Himalayan_cherry
    @Himalayan_cherry Рік тому

    You are not uploading any video for 1 year...
    Why Vijay bhai...
    Please come back....

    • @VijayThapa
      @VijayThapa  Рік тому

      I'lll try my best to make new courses as soon as possible.
      Thank you so much for your love and support.

  • @usamaahmad8620
    @usamaahmad8620 3 роки тому

    Sir in mysli_query($conn, $sql2)
    $sql2 is not working why

    • @VijayThapa
      @VijayThapa  3 роки тому

      Then you might have error in your SQL query.
      Please check that.
      If needed, watch the tutorial once again and compare the code.
      Best Wishes!

  • @Armando-px8hi
    @Armando-px8hi 2 роки тому

    Hello guys! Is there anyone that wrote this code with phpstorm and could open the image??

    • @VijayThapa
      @VijayThapa  2 роки тому

      It might be the problem of your Code Editor.

    • @Armando-px8hi
      @Armando-px8hi 2 роки тому +1

      @@VijayThapa Yes Sir Thank you. So thankful to you to what you are doing. Keep going!

  • @pranayareddy2132
    @pranayareddy2132 3 роки тому

    sir I am getting an error :Undefined index: upload in /..............................l/admin/add_food.php
    could you please help solve it !

    • @VijayThapa
      @VijayThapa  3 роки тому

      You might have error in your upload variable.
      Please watch the tutorial once again and compare the code. It might help you to find the bug and fix it.
      Thanks and Regards!

  • @cooldpgaming9379
    @cooldpgaming9379 3 роки тому

    When I Update the password its not a Update.
    Show me Massege password do not match

    • @VijayThapa
      @VijayThapa  3 роки тому +1

      Then you might have error in comparing the code or encrypting the code.
      Please check the code once again, if needed watch the tutorial once again and compare the code.
      It might help you to find the error and fix it.
      Best Wishes!

    • @cooldpgaming9379
      @cooldpgaming9379 3 роки тому +1

      @@VijayThapa ok sir

  • @rohitparida1049
    @rohitparida1049 3 роки тому

    Sir, I am getting an Error please help.....
    Notice: Only variables should be passed by reference in C:\xampp\htdocs\food-order\admin\add-food.php on line 165
    Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\food-order\admin\add-food.php:100) in C:\xampp\htdocs\food-order\admin\add-food.php on line 207

    • @VijayThapa
      @VijayThapa  3 роки тому +2

      At the top of constants.php, add the following code.
      ob_start();
      Best Wishes!

  • @priankamondal1764
    @priankamondal1764 3 роки тому +1

    Hi,
    I'm getting this warning, please help me to solve it.
    Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\food-order\admin\add-food.php:126) in C:\xampp\htdocs\food-order\admin\add-food.php on line 205

    • @VijayThapa
      @VijayThapa  3 роки тому +2

      Adding following code at the top of "constants.php" might be helpful to you
      ob_start();
      Best Wishes!

    • @priankamondal1764
      @priankamondal1764 3 роки тому

      @@VijayThapa that's mean i need to add only this code .. ob_start(); ..... into constants.php file ?

    • @VijayThapa
      @VijayThapa  3 роки тому

      @@priankamondal1764 Yes, At the top of "constants.php"

    • @priankamondal1764
      @priankamondal1764 3 роки тому +1

      @@VijayThapa it's work... thank you so much

    • @VijayThapa
      @VijayThapa  3 роки тому

      @@priankamondal1764 You're welcome.
      Hope you complete the course soon.
      Also if you think the tutorials are helpful to you and can help others as well, then please SHARE.
      It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
      Thanks and Regards!