Jump to content


Photo

Working with images


  • Please log in to reply
1 reply to this topic

#1 DBookatay

DBookatay
  • Members
  • PipPipPip
  • Advanced Member
  • 334 posts
  • LocationCT

Posted 01 May 2006 - 08:40 PM

Can someone please help me understand this script:

[a href=\"http://www.phpfreaks.com/tutorials/36/0.php?topic_id=1144&hl=2527#2527\" target=\"_blank\"]http://www.phpfreaks.com/tutorials/36/0.ph...44&hl=2527#2527[/a]

Where exactly do I place the code:
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]$newfilename="anexample.gif";$old="files/".$_FILES['imagefile']['name'];$new="files/$newfilename;rename($old,$new1);[/quote]

I have a login area that echos $USERNAME on every page, so what I want to do is have the usernames company logo that is uploaded renamed to something like "(username)_logo.gif" but dont understand just how to go about it.

I got the origional script to work correctly, but now I'm stuck.

Also, after I got this to do what I wanted, I wanted to make it so that they can not only upload .gifs, but also .jpgs as well. And have them so that they are only a certian size. 200x150 max.

Anyone have any ideas?

$result mysql_query("SELECT finger FROM hand WHERE id=3"); 
echo 
$result


#2 DBookatay

DBookatay
  • Members
  • PipPipPip
  • Advanced Member
  • 334 posts
  • LocationCT

Posted 02 May 2006 - 03:34 AM

Anyone?

$result mysql_query("SELECT finger FROM hand WHERE id=3"); 
echo 
$result





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users