How to Upload / Insert an IMAGE into DataBase using PHP Mysql

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

КОМЕНТАРІ • 72

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

    Verry good,,, thanks for tutorial,,,

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

    Thank you for teaching us. You are good at explaining every codes and we understand it. Thank you very much

  • @graphicguru5902
    @graphicguru5902 5 років тому

    sir ho gyi blob se thanks alot ....and thank u for this tutorials...keep uploading

    • @fundaofwebit
      @fundaofwebit  5 років тому

      Thanks for your Support... :-)
      Feel free to suggest me.. for on any new video topic...
      Plzz subscriber, like n Share..

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

    An easy to follow video with clear instructions. Thank you very much for taking the time to make this tutorial. I will be saving the code for future projects!

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

    Tnx for your wonderful teaching😊😊

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

    THANKS BRO THIS HELP REALLY A LOT

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

    Thanks brother

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

    It's works 👍💯

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

    Best tutorial on youtube!
    this video helped me in my project :)

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

    you really helped me a lot

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

    Good job done sir thanku so much ....sir please making a video during login as user input username and password then username and his pic picture showing on dashboard page using session......

  • @sujanshrestha-te7xt
    @sujanshrestha-te7xt 4 роки тому

    Awesome!!! Thank You very much

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

    great video. Thank you!!!

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

    hello! just wondering, why does my image corrupts after uploading the image? when i download the image from mysql database after uploading it, i cannot open it and my vscode cannot decode it either.

  • @AyushGupta-ke9ik
    @AyushGupta-ke9ik 4 роки тому

    Good

  • @malshadivyanjali5250
    @malshadivyanjali5250 4 роки тому +5

    what is tmp_name in the code

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

    hi bro i can't upload 1MB to up file how to fix it

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

    Sir I need help... G video ko ham database me as a Blob data type kaisy store krty hai and show kaisy karty hai .. so please sir solve this problem thanx...

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

    Question sir? No need to make a folder for image? Thank you 😊

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

      no, why you need to make a folder if the image uploaded is going to the database

    • @Emil-ox2ge
      @Emil-ox2ge 2 роки тому

      shit aint working anyway nigga

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

    if we have many images upload files what we should dooo

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

    33 line iam not understanding...
    but output is error in 33 line ...plz explain sir

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

    can anyone please help me! it does not work and i need it for final year project

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

    It showing a error like call to undefined function addslahes()..

  • @1966naresh
    @1966naresh 2 роки тому

    very good check your mail

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

    Sir data not storing then shows the else condition your image and data not stored.

    • @KarthikR-lu4pr
      @KarthikR-lu4pr 2 роки тому

      same issue, can you help to solve it out? pleas!!

  • @adnanahmedrizwanahmed5607
    @adnanahmedrizwanahmed5607 5 років тому +2

    Sir can you give source code ??

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

    at last... simple code

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

    I wrote down everything as it is and still can't upload the picture in the database. Is the problem in picture ? Can anyone help PLEASE !?

    • @KarthikR-lu4pr
      @KarthikR-lu4pr 2 роки тому

      same problem facing here. can you help to solve it out?

  • @graphicguru5902
    @graphicguru5902 5 років тому +1

    sir maine file varchar(100) likha hai??

    • @fundaofwebit
      @fundaofwebit  5 років тому

      Nahi... jaha pe image daal rhi ho...
      Name: file and DataType: BLOB.
      instead of varchar.. BLOB daalo

    • @fundaofwebit
      @fundaofwebit  5 років тому

      Video timing..1:30 pe dekho.. I hv tot... how to save tat.. datatype

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

    Error shows : mysqli_quert has gone away in C:wamp.... How to fix

  • @AyushGupta-ke9ik
    @AyushGupta-ke9ik 4 роки тому

    Sir last login time kese show or updated krte h admin.php pr

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

    i had this error
    Fatal error: Uncaught ArgumentCountError: addcslashes() expects exactly 2 arguments, 1 given in

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

    i did every thing but still it says data not inserted can u share the code

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

    it doesn't work fom me :( it doesn't show any error ! can u please help me ? thank you !

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

      is it working now? if no then, can you paste your code here?

    • @KarthikR-lu4pr
      @KarthikR-lu4pr 2 роки тому

      ​@@shaikhnabeel6443 Hello bro, I did the same work but i end up with the image not uploaded to the database. Can you help to solve it out? pleas!!

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

    hoach amoi zua du Nudldrucka, I glaub dir hot ana ins hirn gschissn voitrottl

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

    sir you have code source or github

  • @mohammedtasiuhamzabajoga4737
    @mohammedtasiuhamzabajoga4737 5 років тому

    Pls upload php oop PDO video of this video

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

    bro where is part 2

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

    waste of time no output "IMAGE NOT UPLOADED"

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

    hey bro can i have source code of this insert image

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

    It is not working bro

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

    its not working

  • @manneprakash3366
    @manneprakash3366 5 років тому +1

    Please give the code

    • @fundaofwebit
      @fundaofwebit  5 років тому +2

      Sorry to say bro.. I did not keep any backup ...
      Thanks for supporting me.
      Please Subscribe, like and share :-)

  • @032-premsunder8
    @032-premsunder8 4 роки тому

    Bro for checking can you send source code

  • @graphicguru5902
    @graphicguru5902 5 років тому

    sir blob dalne k baad bhi nhi ho rha??

    • @fundaofwebit
      @fundaofwebit  5 років тому

      Copy ur code.. and paste in reply me..

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

      @@fundaofwebit I have same problem...

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

      @@fundaofwebit my code is

      Upload Image

      body{
      background-color: lightblue;
      }
      input{
      width: 50%;
      height: 5%;
      border: 1px;
      border-radius: 05px ;
      padding: 8px 15px 8px 15px;
      margin: 10px 0px 15px 0px;
      box-shadow: 1px 1px 2px 1px grey;
      font-weight: bold;
      }


      Upload / Insert IMAGE into Database using PHP MySQL

      Choose an Profile Picture

      Enter Username:

      Enter Designation:

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

      @@rifatahmedsajeeb9908 ua-cam.com/video/QT2aFYbWP74/v-deo.html

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

      @@fundaofwebit Thanks its working now. I just miss php end tag ?> thats it.

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

    Sir it shows image profile not upload.. I try every possible way but not able to figure out.. Can u help me sir

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

      I had this problem as well, it depends on what structure you have saved your image as. In the tutorial, he uses the BLOB structure so if your following this tutorial you must have data structure as BLOB. If you want to change data structure go onto 'structure' in you database and change image structure to BLOB.

  • @graphicguru5902
    @graphicguru5902 5 років тому

    sir my data is not shown in database

    • @fundaofwebit
      @fundaofwebit  5 років тому

      Your Error is that.. your Inserting the Data but data is not getting saved into your DATABASE.. ok..
      1. Your try to upload image so check your form tag i.e:
      2. Check your Database connection i.e $connection = mysqli_connect("localhost","my_user","my_password","my_db");
      3. Your Table name where your storing it. i.e.. $query = "INSERT INTO tablename"
      try with this

    • @fundaofwebit
      @fundaofwebit  5 років тому

      IF your code is correct.. then check with your DataTypes into your Database.. For IMAGE -> it is BLOB
      Was it Helpful ?

    • @graphicguru5902
      @graphicguru5902 5 років тому

      @@fundaofwebit Sir why blob??

    • @fundaofwebit
      @fundaofwebit  5 років тому

      @@graphicguru5902 to save d file. Or image... input type=file... k liye.. I used blob..

  • @graphicguru5902
    @graphicguru5902 5 років тому

    plz help