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

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -