imarockstar Posted March 19, 2009 Share Posted March 19, 2009 hey all .. I currently have an image upload script running ... It works great .. but i need it to create a thumbnail of the image .. as well as throw an error if nothing was uploaded ... i have no clue how to do this ... can some one help me out .. or point me to a tutorial ... thanks !!!! code .... $newname = uniqid("whc").".jpg"; move_uploaded_file($_FILES['flyer']['tmp_name'], "../flyers/$newname"); $b_pik = $newname; $sql="INSERT INTO flyers ( flyer, bid, sid, uid, date) VALUES( '$newname', '$bid', '$sid', '$userid', '$date')"; $result = mysql_query($sql) or die("ERROR: " . mysql_error() . "<Br>SQL: " . $sql); Link to comment https://forums.phpfreaks.com/topic/150202-image-upload-and-resiiiiize/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.