why dont u use filesystem for same? On Tue, Sep 23, 2008 at 11:29 PM, zarilahr <[EMAIL PROTECTED]> wrote:
> Dear Sirs > i have stored some images in mysql as varchar. when i query those > images from php to display they displayed vertically. i want to > display them horizantally. also i put a if condition to break the > images with the quantity of 2. but still unable to get the desired > display. below is the code me using. plz some one help me. > > <table width="26%" border="1" cellspacing="0" cellpadding="0"> > <?php > $i=0; > $q = mysql_query ("select * from stuff where cat_id = '1' > and prod_featured = 'yes'"); > while ($r = mysql_fetch_array ($q)) > { > if ($i==3) > { > $i=0; > } > $i+=1; > ?> > <tr> > <td><img src="images/<? echo $r["image_path"]?>" /></td> > > </tr> > <tr> > <td><?php echo $r["image_name"]?></td> > <?php > } > ?> > </tr> > > </table> > > Regards > Azhar > > > [Non-text portions of this message have been removed]