chriscloyd Posted April 11, 2006 Share Posted April 11, 2006 okay i have a table already in mysql and all i need help is with creating a upload script that upload images to a folder called userimages and i need it to insert the information to the mysql table such as a description ,file address, filename,and uid = userid and i need it to also make a copy of the image and resize it and make the name the same but at the end make it name_resized Quote Link to comment Share on other sites More sharing options...
SharkBait Posted April 11, 2006 Share Posted April 11, 2006 [!--quoteo(post=363828:date=Apr 11 2006, 03:53 PM:name=chriscloyd)--][div class=\'quotetop\']QUOTE(chriscloyd @ Apr 11 2006, 03:53 PM) [snapback]363828[/snapback][/div][div class=\'quotemain\'][!--quotec--]okay i have a table already in mysql and all i need help is with creating a upload script that upload images to a folder called userimages and i need it to insert the information to the mysql table such as a description ,file address, filename,and uid = userid and i need it to also make a copy of the image and resize it and make the name the same but at the end make it name_resized[/quote]I wont be able to help much but with the image resize you'll need to look at the GD part of PHP. Quote Link to comment Share on other sites More sharing options...
MoFish Posted April 11, 2006 Share Posted April 11, 2006 I have a thread trying to do the exact same thing. upload the original and a thumbnailed version to a directory aswell as add the content to a database.my thread is [!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--][a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=90710\" target=\"_blank\"]here[/a] [!--colorc--][/span][!--/colorc--]. It works, and doesnt work. sometimes it uploads fine, other times it doesnt, and i cant quite figure out why. if you find a solution to why it aint working could you give me a shout?MoFish Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted April 11, 2006 Share Posted April 11, 2006 here is some old code of mine - haven't re-visited for a couple of months now -- its part of a class and this one saves the image into the database but you shoudl be able to pick out the bist you need.....grrrr won't let me post the code...pm me with an email addy and i'll send it. Quote Link to comment Share on other sites More sharing options...
chriscloyd Posted April 11, 2006 Author Share Posted April 11, 2006 chriscloyd@cox.net is my email Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.