View Single Post
Old 08-11-2006, 03:20 PM   #8 (permalink)
kalpik
In Pursuit of "Happyness"
 
kalpik's Avatar
 
Join Date: May 2005
Location: New Delhi
Posts: 3,432
Default Re: help in PHP-mysql

Code:
if ($_FILES['imagefile']['type'] == "image/jpg"){ 
   copy ($_FILES['imagefile']['tmp_name'], "files/".$_FILES['imagefile']['name']) 
    or die ("Could not copy");
This is something i made a long time back. See if it works for you, the code is self explanatory.
kalpik is offline