Add dimensions to image php -


i need set smaller dimensions images different sizes , need 1 small size page not stretch, whenever add width , height dimensions keep getting php errors.

just need width , height img.

while ($res = mysql_fetch_array($action)) {     $output = "<img src=\"../admin/inventory_images/{$res['id']}.jpg\"></img><a href=\"product.php?id={$res['id']}\">{$res['product_name']}</a><br />";     echo $output; } 

just put them in <img> tag normal:

$output = "<img src=\"../admin/inventory_images/{$res['id']}.jpg\" height=\"100\" width=\"100\"><a href=\"product.php?id={$res['id']}\">{$res['product_name']}</a><br />"; 

Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -