How to image resize using php?
613
Image retrieve from database and copy image in another folder with same name and image resize with 150x150.
I don't know where is actuall problem in fatching image .
Here is my PHP code.
$s=mysql_query("select * from photo_gallery where image_id = '".$image_id."'");
$r = mysql_fetch_array($s);
echo $filename = 'user_data/'.$r['image_name'];
$filname1 = explode("/",$filename);
echo $filname1[0]; echo "<br>";
echo $filename = $filname1[1];
Answer
Solution:
change you php code like below: try it
Answer
Solution:
I think this will help you.
Your image will be saved in 'user_data/thumbnail' folder.