Jump to content


Photo

upload


  • Please log in to reply
4 replies to this topic

#1 chriscloyd

chriscloyd
  • Members
  • PipPipPip
  • Advanced Member
  • 489 posts
  • LocationArizona

Posted 11 April 2006 - 10:53 PM

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
44 bugs in my java code
44 bugs in my java code
Fix 1 bug, and complie again
122 bugs in my java code

#2 SharkBait

SharkBait
  • Members
  • PipPipPip
  • Advanced Member
  • 845 posts
  • LocationMetro Vancouver, BC

Posted 11 April 2006 - 10:59 PM

[!--quoteo(post=363828:date=Apr 11 2006, 03:53 PM:name=chriscloyd)--][div class=\'quotetop\']QUOTE(chriscloyd @ Apr 11 2006, 03:53 PM) View Post[/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.

#3 MoFish

MoFish
  • Members
  • PipPipPip
  • Advanced Member
  • 210 posts

Posted 11 April 2006 - 11:01 PM

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

#4 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 11 April 2006 - 11:02 PM

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.
follow me on twitter @PHPsycho

#5 chriscloyd

chriscloyd
  • Members
  • PipPipPip
  • Advanced Member
  • 489 posts
  • LocationArizona

Posted 11 April 2006 - 11:18 PM

chriscloyd@cox.net is my email
44 bugs in my java code
44 bugs in my java code
Fix 1 bug, and complie again
122 bugs in my java code




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users