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
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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.