How to image resize using php?
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; echo "<br>"; echo $filename = $filname1;