Jump to content

upload


chriscloyd

Recommended Posts

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
Link to comment
https://forums.phpfreaks.com/topic/7151-upload/
Share on other sites

[!--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.
Link to comment
https://forums.phpfreaks.com/topic/7151-upload/#findComment-26018
Share on other sites

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
Link to comment
https://forums.phpfreaks.com/topic/7151-upload/#findComment-26019
Share on other sites

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.
Link to comment
https://forums.phpfreaks.com/topic/7151-upload/#findComment-26020
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.