Resize Images in php -
i having problem in resizing pictures. show uploaded images have saved path in database table , code show images is:
$result = mysql_query("select * photos"); while($row = mysql_fetch_array($result)) { $name = 'name'; echo '<div id="imagelist">'; echo '<p ><img src="timthumb.php?src="' .$row['location']. '"&w=100&h=80"/></p>'; echo '</div>'; echo '<div id="imagelist">'; echo '<p>' .$row['id']. '</p>'; echo " "; echo '<p><b>location:</b>' .$row['location']. '</p>'; echo '<p><b>file name:</b>' .$row['name']. '</p>'; echo '<p><b>id:</b>' .$row['au_id']. '</p>'; echo '<p><b>position:</b>' .$row['position']. '</p>'; echo '<p><b>contace info:</b>' .$row['contact']. '</p>'; echo '</div>'; }
i using timthumb , .$row['location']. has values "photos/image.png". page unable show pictures, usning timthumb correctly?
echo '<p ><img src="timthumb.php?src="' .$row['location']. '"&w=100&h=80"/></p>';
remove " " url:
echo '<p ><img src="timthumb.php?src=' .$row['location']. '&w=100&h=80"/></p>';
Comments
Post a Comment