PHP Tutorials: Uploading/Storing an Image inside a MySQL Database (Part 2)

Posted by: Admin  :  Category: Mysql

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

Uploading and storing images inside a MySQL database, rather than as a file in a web directory. Visit the forum for help! phpacademy.info Follow on Twitter! twitter.com
Video Rating: 4 / 5

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

25 Responses to “PHP Tutorials: Uploading/Storing an Image inside a MySQL Database (Part 2)”

  1. MrCuteprince17 Says:

    Hey Adam! Tnx for your vid tutorials. Can you help me in my Thesis? PLEASE help me in my Online Ordering Website for a Mobile Store. Looking Forward for your reply. cuteprince_ian17@yahoo.com

  2. SlobodanV1984 Says:

    Alex, just wanted to say great job you’re doing!
    Thanks man. I learned a lot by watching your videos.

  3. hopehopefull Says:

    Well Thank You!!!!!!!!

  4. Myztik7 Says:

    @ForfrontTechnology Maybe I should be more clear.. I’m referring to the mysql_* functions, they’re old and rusty and right now they’re under discussion to be made deprecated in new PHP releases.

    You should be using PDO or at least mysqli_* to access your database, teaching people to use mysql_* functions is the opposite of helpful. I don’t start my own tutorials because I’m not an expert and don’t want to teach people things that are not correct, and I’m lazy.

  5. ForfrontTechnology Says:

    @Myztik7 Pssst, without mysql functions, you don’t have accounts, “Log in”, and all of that. If your so good, why not start some PHP tutorial videos yourself instead of trolling on someone working hard to educate others?

  6. mikekevinvideos Says:

    @Joshy789 That is probably true i do that a lot

  7. Joshy789 Says:

    @mikekevinvideos Thought I had it working at some point but I’ve since deleted the files and opted for storage outside of the database. Sorry…
    Probably was something silly, like a forgotten semicolon or something.

  8. mikekevinvideos Says:

    @Joshy789 me too did you find a solution

  9. ozzygorkan Says:

    Hello Guys, I really like this tut. but I have a problem about showing multiple images which are already uploaded inside database. At the end of the tutorial he says it is very easy to make it with while loop but I am new to php and I couldnt make that while loop. If you guys can givem e very little explanaton for that. I would be grateful…

    Thanks A lot

  10. Joshy789 Says:

    Thanks for the tutorial!

    One problem though: my images don’t display; I get the square with the question-mark.
    They ARE stored in the database however. And when viewing the ‘image’ it does have the ?id=*whatever last id*. I have no clue

    Any suggestions?

  11. danaluvyunho Says:

    nice very nice thx a lot for perfect tutorial ^^

  12. eitesam Says:

    Thanks for this all the other tutorials.

  13. MrSolumbe Says:

    ( ! ) Parse error: syntax error, unexpected T_ELSE in on line 38

  14. MrSolumbe Says:

    hi

  15. HawxTeamDelta Says:

    @HawxTeamDelta rofl

  16. HawxTeamDelta Says:

    rolf at 13:21 😀

  17. StijnLang Says:

    The error: Parse error: syntax error, unexpected ‘;’ in /home/a4443180/public_html/upload/index.php on line 27

  18. muffinman893 Says:

    I followed this tutorial and it all works, except instead of my image there is a small white box with a page ripped in half. Im pretty sure this means the image source is missing (in firefox). Anyone know what the hell is going on?

  19. aspscix Says:

    i’ve just followed this tutorial and everything worked perfectly. Just keep checking the codes and see if there are mistyped errors, or other codes that are case sensitive

    this tutorial helped me lot. thank you very much.

  20. santed Says:

    useless! noone answer …this shit does not work properly! $file = $_FILES[‘image’][‘tmp_name’];

  21. santed Says:

    how should i upload the index.php and the get.php to my ftp? in a folder or just like that

  22. 1EverythingFunny1 Says:

    @Myztik7 no i have not

  23. supercatt123 Says:

    My upload was working,but now it is not and mysql_fetch_assoc is not working can someone help me?

  24. stokeeees Says:

    @Myztik7 Stick a tutorial of how it should be done then.

  25. Myztik7 Says:

    @ikarus2080 I’m not a professional… I hardly even write any code, and when I do it’s usually to avoid manual labour.

Leave a Reply

*