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
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”
Did anyone have the problem when they click toggle to upload a photo and nothing apperas?
The upload photo square is just plain white after i upload my picture. However i can see the photo in the list of users in the index page. Anybody else have this issue?
Hello Sir….How to create login from just like gmail (auto image calling after email type) Please tell me how to create…..
hey, is it possible to change the profile photo without refreshing the whole page?
anyone know about the database structure? what type did he use in avatar is it BLOB?
Great stuff Adam, youre a legend man
Is there a way to get rid of the image re-sizing? I've been playing with it for hours now.
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
Hi! Can I know if you have a tutorial where the picture will appear as preview after you'd uploaded the picture?
anyone plzzz help me…..
ERROR: File upload failed
plz help me its argent….
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.'')">' ;"
the gallery showcase function wont work. please somebody help
Thanks for this!
how to change file permission to upload photos?
Does anyone know how to stop the background from becoming black if the upload image is transparent? This is really annoying.
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
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
Any one getting the error when clicking on toggle avator form!!
it doesnot show the file uploading function!!! It doesnot do anything at all..Any idea might be great help to me!! Thank u
can you show me the steps from the start, like when you open myy php ad connect it sir T_T thank you
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
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?
I dont find the insert data into notifications table, can someone help me please?
ERROR: File upload failed!!!!!
Who may help me to figure out where is the …. problem?
For some reason, when I upload the image and press upload, I get sent directly to the photo_systems.php page. Is anyone else having this problem?
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???
You forgot to echo the $userlist ?? for it to appear
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
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
Heyy i need help ERROR: File upload failed how to fix
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
guys where to copy whatever this guy writing in index.php At first : (
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?
what do we have to put in place of # in $profile_pic_btn=<a href="#"…….> in users.php
somebody help….
i am having problem again and again its tell the website has a redirect loop dont know what to do cant fihure it out, iam really stuck, please help….