#44 Upload image in php mysql database and display | PHP tutorial | Learn PHP programming

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ก.ย. 2024
  • Upload image in php mysql database and display
    In this video, we are going to upload images using PHP, And will update the user profile. We are going to display user data from database in a form and user can make changes and can update the details stored in database.
    Videos you might like:
    1. Build a not application full guide: • Build a Notes App with...
    2. Pdf reader app using JavaScript: • Pdf reader app using J...
    3. Deploy laravel app to aws full guide: • Deploy laravel app to ...
    4. Vuex Crash Course 2021: • Vuex Crash Course 2021...
    5. Ecommerce website in laravel and vuejs full guide: • Ecommerce website in l...
    6. Build a chat app with laravel and pusher: • Build a chat app with ...
    7. Build A Calculator In Vue Js 3: • Build A Calculator In ...
    8. Build a Web Scraper using Vue js 3: • Build a Web Scraper us...
    9. laravel api authentication sanctum: • laravel api authentica...
    10. Laravel full course: • Laravel full course | ...
    11. PHP unit testing tutorial: • php unit testing tutor...
    12. laravel unit testing tutorial: • laravel unit testing t...
    Code used in video can be downloaded from here:
    zarx.biz/downl...
    Buy Me a coffee if you liked my work ( PayPal ) :
    www.paypal.com...
    Visit Us at:
    zarx.biz
    **************************************************************************
    PHP For Beginners Playlist: • PHP For Beginners | Le...
    Playlist Episodes:
    1. Introduction to PHP Programming
    • Introduction to PHP Pr...
    2. Installing A Local Server for PHP
    • #2: Installing A Local...
    3. Output In Browser Using PHP
    • #3: Output In Browser ...
    4. How to Create PHP Variables
    • #4: How to Create PHP ...
    5. Display data from Form Using PHP
    • #5: Display data from ...
    6. PHP Predefined functions with examples
    • #6: PHP Predefined fun...
    7. Data Types in PHP
    • #7: Data Types in PHP ...
    8. Arithmetic Operators in PHP
    • #8: Arithmetic Operat...
    9. Assignment Operators in PHP
    • #9: Assignment Operato...
    10. Comparison Operators in PHP
    • #10: Comparison Operat...
    11. Increment and decrement Operators in PHP
    • # 11: What Are Increme...
    12. Conditional statements in PHP
    • #12: Conditional State...
    13. Logical Operators in PHP
    • #13: Logical Operator...
    14. Switch Statements in PHP
    • #14: Switch Statements...
    15. While loop in PHP
    • #15: While Loop in PHP...
    16. Do while loop in PHP
    • #16: Do While Loop in ...
    17. For loop in PHP
    • #17: For loop in php |...
    18. Custom Functions in PHP
    • 18: Custom functions i...
    19. Foreach loop in PHP
    • 19: Foreach loop in ph...
    20. How to Include FIles in PHP
    • #20 How to Include FIl...
    21. Local and global scope in PHP
    • #21 Local and Global S...
    22. How to create a project in PHP
    • #22 how to create a pr...
    23. Superglobals in PHP
    • #23 Superglobals in PH...
    24. Post and Get super globals in PHP
    • #24 POST and GET Super...
    25. Session and Cookies in PHP
    • Video
    26. Deep Dive PHP sessions
    • #26 Session in PHP | P...
    27. How to create Mysql database
    • #27 How to create MyS...
    28. Create a Mysql table in database
    • #28 Create a MySQL Tab...
    29. Mysql insert into Database
    • #29 MySQL Insert Into ...
    30. Select data from Mysql database
    • #30 Select data from d...
    31. Update data in Mysql database
    • #31 Update database ph...
    32. Delete data from Mysql database
    • #32 Delete data from m...
    33. Order by and Group by
    • #33 Order by and group...
    34. How to connect to Mysql database
    • #34 How to connect to ...
    35. Display data on website from database
    • #35 Display data on we...
    36. Insert data into database table using PHP
    • #36 Insert data to dat...
    37. Secure databse against SQL Injection
    • #37 Sql injection prev...
    38. Error Handling in PHP
    • #38 Error handling in ...
    39. Login system in PHP
    • #39 Login system in ph...
    40. Encrypt data in PHP
    • #40 Encrypt data in PH...
    41. Insert multiple data in array
    • #41 Add multiple value...
    42. Types of Array in PHP
    • #42 Arrays in php with...
    43. User Profile update using PHP
    • #43 User profile updat...
    44. Upload image in PHP
    • #44 Upload image in ph...
    45. Storing each user's data separately in PHP
    • #45 Storing each user ...
    46. Delete user Profile in PHP
    • #46 Delete user data i...
    47. Occurrence counter application in PHP
    • #48 Count occurrence o...
    48. Image gallery Part 1
    • #49 How to create imag...
    49. Image gallery Part 2
    • #50 How to create imag...
    50. Image gallery Part 3
    • #51 How to create imag...
    **************************************************************************
    Subscribe To Support

ความคิดเห็น • 14

  • @jonyghosh7594
    @jonyghosh7594 3 ปีที่แล้ว +1

    Awesome work bro ❤️

    • @ZarxBiz
      @ZarxBiz  3 ปีที่แล้ว

      Thank you

  • @jonahthrane812
    @jonahthrane812 3 ปีที่แล้ว +1

    Does this work for every user not just the one you made?

  • @GOLLALOKESH-no7br
    @GOLLALOKESH-no7br 3 ปีที่แล้ว +1

    bro can we use this for every user in our database with different profiles

  • @aragornlive8298
    @aragornlive8298 ปีที่แล้ว +1

    $_post for user name, $_files for image. Then how about a date?

    • @ZarxBiz
      @ZarxBiz  ปีที่แล้ว +1

      hi there, generally we use date as stri generally and $_post is works fine with it. hope this helps

  • @m3rchantjuan
    @m3rchantjuan 2 ปีที่แล้ว +1

    Sir, great work! Thank you for the tutorial, everything works great! But I have one small problem. Whenever I want to update, let's say, username or other details without changing the current profile pic. It seems that it does not work without choosing a file to put in the file input. The if else statement seems to fall on the "Invalid file type!" everytime I attempt to change a data without changing the image. Do you have any idea how to fix that issue? Thank you for your response!

    • @m3rchantjuan
      @m3rchantjuan 2 ปีที่แล้ว +1

      Solved it. In the video, the if else statement for updating image is nested on the if else of the main form. I decided to separate both the if else statement for the image and the update of details and also separate the forms of the two. It means that the update of image is in a different form and has its own button that has its own name.

    • @ZarxBiz
      @ZarxBiz  2 ปีที่แล้ว +1

      Thank you for your comment. Sorry for my late reply but I am glad you managed to find a way out. Cheers👍

  • @abubakaribilal7060
    @abubakaribilal7060 2 ปีที่แล้ว +1

    bro, why did you write functions for catching image extension error instead of using 'accept image' in html to prevent the errors. I'm confused

    • @ZarxBiz
      @ZarxBiz  2 ปีที่แล้ว +1

      Hi there, Thanks For you comment. There are many ways we can check user input. I demonstrated one way. you can try any way of your choice. Just wanted to show how to do if you check using php.

  • @andreassiregar9031
    @andreassiregar9031 ปีที่แล้ว

    hello, I am having the same problem as you, at 17:35
    I have changed the variable to "$fileImageData" and the invalid file type error still appears.
    Even though I input the correct file type.
    Can you help me? i will be very grateful.
    Thank you.

  • @ankushsingh1977
    @ankushsingh1977 ปีที่แล้ว

    Sir your download link is not working pls give us a new link

  • @user-gy1jv2tg4p
    @user-gy1jv2tg4p 2 ปีที่แล้ว

    how to make it without pictures so like if i dont have $uploaded like at 29:14