Update Image Profile With Preview Image Before Uploaded In PHP & MySQL | Update & Preview Image PHP

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 17

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

    excelente gracias

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

    Imazing man thanks 😊

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

      You're very welcome!!! Thank you for watching!!!

  • @GökayCanYedek
    @GökayCanYedek Рік тому +1

    I love you bro 🇹🇷

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

      Thank you 🇮🇩. I hope the ongoing election in your country going well

    • @GökayCanYedek
      @GökayCanYedek Рік тому

      @@DavidGTech Thank you and I wish you success.

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

    Magnifique ! Merci for the tut'

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

      You're very welcome! I'm glad you found the tutorial helpful.

  • @NoName-yw1pt
    @NoName-yw1pt 10 місяців тому +1

    I want to make the same thing but with 2 images. To upload 2 different images in 2 different places. How can I do it? Tried to copy the code but it doesn't work

    • @DavidGTech
      @DavidGTech  5 місяців тому

      Hi @NoName-yw1pt! To upload and display two different images in two different places, you'll need to modify the code to handle multiple image inputs. Ensure you have two separate input fields in your HTML form and adjust the PHP code to process both files and save them to different locations. If you need more detailed guidance, feel free to ask!

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

    I got different users due to Login System. image visible same for different users
    The issue is: It's always posting the image to the first ID. please provide modified code

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

      Hi @mohanreddy8096,
      Thanks for reaching out and bringing this to my attention. I understand the issue you're facing with the Login System causing the image to always be posted to the first ID. To resolve this, you'll need to make sure that the code properly associates the image upload with the current user's ID.
      Without seeing your specific code, I can offer some general guidance. Please check the part of your code where you handle the user's session or login information. Ensure that you are correctly retrieving and using the current user's ID when processing the image upload.
      If you can share the relevant parts of your code where you handle the user login and image upload, I'd be happy to take a closer look and provide more targeted assistance.
      Looking forward to helping you resolve this issue!

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

    I can't display uploaded img from database even I followed exactly what you did :((

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

      Make sure that all of your codes is correct like in the video or the source code, thanks.

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

      @@DavidGTech ey yoo this doesnt work even were have the same code

  • @checktheq7915
    @checktheq7915 4 місяці тому +2

    Why am i getting WARNING: mysqli_fetch_assoc. 😫

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

      @checktheq7915 That warning usually happens when there's no result set to fetch from. Make sure your query returns results before using mysqli_fetch_assoc. Check your query and connection first. If you still face issues, let me know! 😊