13. User Profile Photo File Upload HTML Form Tutorial PHP Parse Script MySQL




Lesson Code: http://www.developphp.com/video/PHP/User-Profile-Photo-File-Upload-HTML-Form-PHP-Parse-Script-MySQL Learn to allow your users to …

Original source


35 responses to “13. User Profile Photo File Upload HTML Form Tutorial PHP Parse Script MySQL”

  1. hey adam i am following your series and its working perfectly but now i have followed this tutorial but it did not work. when i hover the default profile image "toggle avatar form" appear but when i click on it nothing happens like the upload button and choose file button they dont appear? even i have tried copying your code but still the same situation. please help me i dont know whats wrong

  2. Adam, wat's good bro here is wat's up. on the photos.php file photo upload and every other thing works but when i click on the gallery it won't open the gallery. i tried to Trace the problem and am convinced that the problem is here "$gallery_list .= '<div onclick="showGallery(''.$gallery.'',''.$u.'')">' ;"

  3. I am the newest developer in town. I'm currently working on a project at the moment, and I'd like to have someone to guide me through. At the moments, I have a code to upload my profile picture, but I don't like how it displayed it, plus I could only upload one picture at a time which overrides the previous. I need help making it to upload multiple pictures .
    Thanks in advance

  4. Hi Adam, really thankyou so much, really good tutorials. it keeps coming up with ERROR file upload fail. I've added a directory to public html named user and then it sends me to php_parsers/photo_php. any help would be much appreciated

  5. great tutorial, im also combining this with my own code so that when the user uploads the profile image, it automatically adds a folder called 'profile pictures' to the photo album list and inserts that image to the folder, i also have a link in place to expand the profile image on click ! booyah!   THANKS ADAM FOR THE HEAD START

  6. I can't seem to find what is wrong.  I upload the photo.  I see google loading the file.  I can see the file in my db table for user/avatar.  but after it loads the photo it just takes me to a blank page that is system_photo.php  Google dev tools sees nothing is wrong.  Anyone have an ideas?

  7. I have been using all of the tutorials in this series and everything has worked great. However, after adding the code from this video to the user.php file I am getting an error on line 57 ~ Undefined variable: user1. I cant seem to be able to find where the value for this would be coming from???

  8. in the first part of the video you give us this code

    <?php
    include_once("php_includes/check_login_status.php");
    $sql = "SELECT username, avatar FROM user WHERE avatar IS NOT NULL AND activate='' ORDER BY RAND() LIMIT 32";
    $query = mysqli_query($db_conx, $sql);
    $userlist = "";
    while($row = mysqli_fetch_array($query, MYSQLI_ASSOC)){
        $u = $row["username"];
        $avatar = $row["avatar"];
        $profile_pic = 'user/'.$u.'/'.$avatar;
        $userlist .= '<a href="user.php?u='.$u.'" title="'.$u.'"><img src"'.$profile_pic.'" alt="'.$u.'" style="width:100px; height:100px; margin:10px;"></a>';
    }

    $sql = "SELECT COUNT(id) FROM users WHERE activated='1'";
    $query = mysqli_query($db_conx, $sql);
    $row = mysqli_fetch_row($query);
    $usercount = $row[0];
    ?>

    when i use it i get this error that states
    Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in /home/***********/public_html/index3.php on line 6

    please help

  9. hello guys this doesn t work for me,and photo_system.php stack when i try to upload file larger than 2mb…solution is that i write in my .htaccess the following:
    php_value upload_max_filesize 10M
    php_value post_max_size 10M
    php_value max_input_time 300
    php_value max_execution_time 300

    now it works

  10. dont tell shit which is not related to the title of your vedio dumb motherfucker!!
    if ur concepts are not clear than dont make vedios on first place!  i would have spit on ur face if u were in front of me

  11. Hey Adam, I am trying to use the toggle for a picture I have also.  When i click toggle though nothing is happening.  I am getting "Uncaught TypeError: Cannot read property 'style' of null " in the console.  Any idea on how to fix this?

Leave a Reply