JankaZ Posted March 30, 2010 Share Posted March 30, 2010 how ken i make db with user image. When user Resgister hi place link to image and save to database. On profile page showing hes image tro sessions plzz script example aim nobie! Link to comment https://forums.phpfreaks.com/topic/197001-user-image/ Share on other sites More sharing options...
gwolgamott Posted March 30, 2010 Share Posted March 30, 2010 Look for a tutorial site, thats a bit too complicated to explain. And this is a help with code forum, go to w3schools.com/php and google search user forms as well. Or get a package deal like nuke. Link to comment https://forums.phpfreaks.com/topic/197001-user-image/#findComment-1034285 Share on other sites More sharing options...
JankaZ Posted March 30, 2010 Author Share Posted March 30, 2010 No I wana start from 0 For example: 1.In DB i mage imgurl row. 2.Login ass Session and from sesion username get img url and display 3. <td><img src="<?=$_SESSION["imgurl"]?>" height="200" width="150"</img></td> Link to comment https://forums.phpfreaks.com/topic/197001-user-image/#findComment-1034288 Share on other sites More sharing options...
irkevin Posted March 30, 2010 Share Posted March 30, 2010 Basically you will need to look in $_FILES, is_uploaded_file() and move_uploaded_file(), once uploaded, get the URL of the image, or maybe just the image name, and insert it in the Database. Link to comment https://forums.phpfreaks.com/topic/197001-user-image/#findComment-1034290 Share on other sites More sharing options...
gwolgamott Posted March 30, 2010 Share Posted March 30, 2010 No I wana start from 0 For example: 1.In DB i mage imgurl row. 2.Login ass Session and from sesion username get img url and display 3. <td><img src="<?=$_SESSION["imgurl"]?>" height="200" width="150"</img></td> Ok then as mentioned above, by irK do as he says. You have more understanding then a newbie it seems then as you portrayed. So what do you want help with first, this is simply to do but a little hard to explain to some is what I meant. What do you have first? Do you have a working code for login? Do you have a database with usernames already? Link to comment https://forums.phpfreaks.com/topic/197001-user-image/#findComment-1034300 Share on other sites More sharing options...
JankaZ Posted March 30, 2010 Author Share Posted March 30, 2010 Table Users Rows For example you upload image to imageshock and when register place link in imgurl! Im profile page that image display. Link to comment https://forums.phpfreaks.com/topic/197001-user-image/#findComment-1034311 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.