How do I make my Php script display a picture in 250 x 250, because currently it automatically puts the pictures in 200 x 300 and that makes most pictures look a lot taller then they are. Thanks for your help.
yeah here is the code <? session_start(); include("conn.php"); include("header.php"); ?> <style type="text/css"> <!-- .style1 { color: #CC0000; font-weight: bold; } .style2 { color: #666666; font-weight: bold; } .style3 {color: #666666} --> </style> <table width="780" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" align="center"> <tr> <td width="209" align="center" valign="top"> <? include "category.php"; ?><br> </td> <td width="571" valign="top"> <table width="98%" border="0" align="right" cellpadding="0" cellspacing="0"> <tr><td> <? /*$id=$_GET['id']; $query="select * from main_category where cat_id='$id'"; $result=mysql_query($query); $row=mysql_fetch_assoc($result); $main_category=$row['category'];*/ //$main_category1=stripslashes($main_category); $bid_id=$_GET['bid_id']; $show_data="select * from bidding_main where bid_id='$bid_id' "; $show_data_query=mysql_query($show_data); $num_show_data=mysql_num_rows($show_data_query); for($i=0;$i<$num_show_data;$i++) { $main_category=mysql_result($show_data_query,$i,'main_category'); $main_category1=stripslashes($main_category); $bid_id=mysql_result($show_data_query,$i,'bid_id'); $sub_category=mysql_result($show_data_query,$i,'sub_category'); $sub_category1=stripslashes($sub_category); $author_name=mysql_result($show_data_query,$i,'author_name'); $item_name=mysql_result($show_data_query,$i,'item_name'); $item_des=mysql_result($show_data_query,$i,'item_des'); $max_price=mysql_result($show_data_query,$i,'max_price'); $normal_mrp=mysql_result($show_data_query,$i,'normal_mrp'); $user_bid=mysql_result($show_data_query,$i,'user_bid'); $auction_type=mysql_result($show_data_query,$i,'auction_type'); $hrbid=mysql_result($show_data_query,$i,'hrbid'); $hmbid=mysql_result($show_data_query,$i,'hmbid'); $hpbid=mysql_result($show_data_query,$i,'hpbid'); $num_avail=mysql_result($show_data_query,$i,'num_avail'); $bid_credit_req =mysql_result($show_data_query,$i,'bid_credit_req'); //$min_bid=mysql_result($show_data_query,$i,'min_bid'); $max_bid =mysql_result($show_data_query,$i,'max_bid'); $expire_date=mysql_result($show_data_query,$i,'expire_date'); $item_image=mysql_result($show_data_query,$i,'item_image'); $id1=mysql_result($show_data_query,$i,'bid_id'); $num_bid_on_item=mysql_result($show_data_query,$i,'num_bid_on_item'); $remaining_bid=$max_bid - $num_bid_on_item; $sector_status=mysql_result($show_data_query,$i,'sector_status'); $terms=mysql_result($show_data_query,$i,'terms'); $shipping=mysql_result($show_data_query,$i,'shipping'); ?> <table border="0" cellpadding="3" cellspacing="0" width="100%" height="144"> <tr> <td width="43%" align="center" valign="top"><img src="item_images/<?=$item_image?>" width="200" height="300"> <br> <br> <table width="90" border="0" cellpadding="0" cellspacing="1" bgcolor="FFFFFF"> <tr> <td><img src="images/menu_left.jpg" width="15px" height="45px" style="float: left; margin-right: -3px" /><strong> <a href="bid_page1.php?bid_id=<?=$bid_id?>" class="whitelink3" style="background: url('images/menu_bg.jpg') repeat-x; height: 45px; display: block; float: left; padding-top: 15px; margin-bottom: -15px">Bid Now</a></strong><img src="images/menu_right.jpg" width="15px" height="45px" id="bid_now_end" /></td> </tr> </table> </td> <td width="57%" valign="top"><table width="100%" border="1" cellpadding="2" cellspacing="0" bordercolor="#000000"> <tr> <td width="71%"><span class="style1">Auction Title: <br> </span></td> <td width="29%"><span class="style1"> <?=$item_name?> </span></td> </tr> <tr> <td><span class="style2">Retail Price : </span></td> <td><span class="style2"> <?=$normal_mrp?> </span></td> </tr> <? if($hmbid=="1") { } else { ?> <tr> <td><span class="style2">Maximum No. of Bid Available: </span></td> <td><span class="style2"> <?=$max_bid?> </span></td> </tr> <?} if($hpbid=="1") { } else { ?> <tr> <td><span class="style2">No of Bids Placed so Far: </span></td> <td><span class="style3"> <? $sqlno="select * from bidding_details where bid_id=$bid_id"; $queryno=mysql_query($sqlno); echo $numno=mysql_num_rows($queryno); ?> </span></td> </tr> <? } if($hrbid=="1") { } else { ?> <tr> <td><span class="style3"><strong>No of Bids Remaining:</strong> </span></td> <td><span class="style3"><strong> <?=$max_bid-$numno?> </strong></span></td> </tr> <? } ?> <tr> <td><span class="style3"><strong>Minimum Bid Amount:</strong> </span></td> <td><span class="style3"><strong> <?=$max_price?> </strong></span></td> </tr> <tr> <td><span class="style3"><strong>Bidding Fee Per Bid:</strong> </span></td> <td><span class="style3"><strong> <? if($auction_type=="1") echo "".$bid_credit_req." credit"; else if($auction_type=="0")echo $bid_credit_req." Credit";?> </strong></span></td> </tr> <tr> <td colspan="2"><span class="style3"><strong>Product Description: <br> <br> <?=$item_des?> </strong></span></td> </tr> </table> </td> </tr> <tr> <td colspan="2" height="24"> </td> </tr> </table> <? } ?> </td> </tr> </table> </tr> </table> <?PHP include "footer.php"; ?> PHP: sorry it has been a couple days
change: <td width="43%" align="center" valign="top"><img src="item_images/<?=$item_image?>" width="200" height="300"> to: <td width="43%" align="center" valign="top"><img src="item_images/<?=$item_image?>" width="250" height="250">