Jump to content

image upload and resiiiiize


imarockstar

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

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