start new row of pictures


Posted on 16th Feb 2014 07:03 pm by admin

on my site www.budstreasureauctions.com there is a featured auctions box that users will pay to get there picture on the homepage. currently the box limit is 6. If you increase the limit then it will display the images in a row side by side continuously. I need it to display 6 per row then start a new row of 6, so on, so on.

here is the current code:
Code: <? $feature_sql="select * from featuredproducts f,auction_details p where p.status='Active' and selling_method!='ads' and selling_method!='want_it_now' and home_feature='yes' and picture1!='' and p.bid_starting_date <= NOW() and f.productid=p.productid order by rand() limit 6";
$feature_res=mysql_query($feature_sql);
$tot_count=mysql_num_rows($feature_res);
if($tot_count!=0)
{
?>
<table border="0" align="center" cellpadding="0" cellspacing="0" width=574>
<tr>
<td colspan=4 height="30" valign="middle">
<table width="574" cellpadding="0" cellspacing="0" >
<tr>
<tr class="tdhead"><td width="1%" height="30" valign="top"><img src=templates/<?=$tfold?>/img_files/h_left.gif></td>
<td width="98%" height="30" valign="middle">&nbsp;<B>Featured Auctions</b>&nbsp;&nbsp;<a href="rssfeatured.php" target="_blank"><img src=templates/<? echo "$tfold" ?>/img_files/xml.gif border="0"></a></td>
<td width="1%" height="30" valign="top"><img src=templates/<?=$tfold?>/img_files/h_right.gif></td></tr>
</tr>
</table>
</tr></table>
<table border="0" align="center" cellpadding="0" cellspacing="0" width=574 class="ft_right">
<?
}
?>
<?
$count=0;
while($feature_row=mysql_fetch_array($feature_res))
{
$expire_date = $feature_row['expire_date'];
require 'ends.php';
$string_1=$feature_row[detailed_descrip];
$count=$count+1;
?>
<td valign=top>
<table cellpadding=5 cellspacing=2>
<td >
<? if(empty($feature_row['picture1']))
{ ?>
<table height="49" border="0" cellpadding=0 cellspacing=0>
<tr>
<td height="12" background="templates/<? echo "$tfold" ?>/img_files/window_01.gif" ></td>
</tr>
<tr>
<td background="templates/<? echo "$tfold" ?>/img_files/window_03.gif" >

<table border="0" cellpadding="0" cellspacing="0" width=77>
<tr valign="top">
<td align="center">
<a href="itechd.php?productid=<? echo $feature_row['productid']; ?>">
<? echo $featured_row['producttitle']; ?>
<img src="templates/<? echo "$tfold" ?>/img_files/noimage2.gif" width=<?= $w; ?> height=<?=$h?> border=0>
</a>
</td>
</tr>
</table>
</td>
</tr><tr>
<?
$bid_sql="select * from site_bids where productid=".$feature_row['productid'];
$bid_res=mysql_query($bid_sql);
$bid_tot_row=mysql_num_rows($bid_res);
if($bid_tot_row!=0)
{
$bid_row=mysql_fetch_array($bid_res);
$curprice=$bid_row['bidding_amount'];
}
else
{
$curprice=$feature_row['min_bid_amount'];
}
if($feature_row['selling_method']=="fix")
{
$curprice=$feature_row['quick_buy_price'];
}
?>
<td valign=top align="center">
<a href="itechd.php?productid=<? echo $feature_row['productid']; ?>">
<? echo $feature_row['producttitle'];?></a>
<? echo "Price: ".$feature_row['currency']." ".$curprice; ?>


<a href="itechd.php?productid=<? echo $feature_row['productid']; ?>" style="text-decoration:none;">

<?= $string_difference; ?>
</a>
</td>
</tr>
</table>

<?
}
else
{

$img=$feature_row['picture1'];
list($width, $height, $type, $attr) = getimagesize("uploads/$img");
$h=$height;
$w=$width;
if($h>60)
{
$nh=60;
$nw=($w/$h)*$nh;
$h=$nh;
$w=$nw;
}
if($w>60)
{
$nw=60;
$nh=($h/$w)*$nw;
$h=$nh;
$w=$nw;
}

?>
<table height="49" border="0" cellpadding=0 cellspacing=0 align=center>
<tr>
<td height="12" ></td>
</tr>
<tr>
<td align=center>
<center>
<table border="1" cellpadding="0" cellspacing="0" width=65 height=65 bordercolor="#000000">
<tr valign="top">
<td align="center" bgcolor="#ffffff">
<a href="itechd.php?productid=<? echo $feature_row['productid']; ?>">
<? echo $featured_row['producttitle']; ?>
<img src="uploads/<? echo $feature_row['picture1']; ?>" width=<?= $w; ?> height=<?=$h?> border=0>
</a>
</td>
</tr>
</table></center>
</td>
</tr>
<tr>
<?
$bid_sql="select * from site_bids where productid=".$feature_row['productid'];
$bid_res=mysql_query($bid_sql);
$bid_tot_row=mysql_num_rows($bid_res);
if($bid_tot_row!=0)
{
$bid_row=mysql_fetch_array($bid_res);
$curprice=$bid_row['bidding_amount'];
}
else
{
$curprice=$feature_row['min_bid_amount'];
}
if($feature_row['selling_method']=="fix")
{
$curprice=$feature_row['quick_buy_price'];
}
?>
<td valign=top align="center">
<a href="itechd.php?productid=<? echo $feature_row['productid']; ?>">
<? echo $feature_row['producttitle'];?></a>
<? echo "Price: ".$feature_row['currency']." ".$curprice; ?>


<a href="itechd.php?productid=<? echo $feature_row['productid']; ?>" style="text-decoration:none;">

<?= $string_difference; ?>
</a>
</td></tr>

</table>
<?
}
?>
</td>
</tr>
</table>
</td> <?
}
?>
<? if($tot_count!=0)
{ ?>
</tr>
</table>

<?
}
?>

Posted on 07th Feb, 2017
ndoironraina
[b][url=http://www.solowatch.cn/ru/]высокое качество реплики[/url][/b] | [b][url=http://www.solowatch.cn/ru/]часы[/url][/b] | [b][url=http://www.solowatch.cn/ru/]швейцарские механические движения реплики[/url][/b]
[b][url=http://www.solowatch.cn/ru/]высокое качество реплики[/url][/b] | [b][url=http://www.solowatch.cn/ru/]часы[/url][/b] | [b][url=http://www.solowatch.cn/ru/]швейцарские механические движения реплики[/url][/b]
[b]швейцарские часы реплики AAA +[/b]
[b][url=http://www.solowatch.cn/ru/]швейцарские часы реплики[/url][/b]
Posted on 07th Feb, 2017
ndoironraina
[b][url=http://ru.ladiesrolex.top/]Лучшие копии часов[/url][/b][b][url=http://ru.ladiesrolex.top/]/ watches price[/url][/b][b][url=http://www.ladiesrolex.top/ru/]/ watches price[/url][/b]
[b]Лучшие копии часов[/b][b][url=http://ru.ladiesrolex.top/]/ watches price[/url][/b][b]/ watches price[/b]
[b][url=http://ru.ladiesrolex.top/]высокое качество копии часов для мужчин[/url][/b]
[b][url=http://www.ladiesrolex.top/ru/]высокое качество копии часов для мужчин[/url][/b]
Posted on 07th Feb, 2017
ndoironraina
[b][url=http://ru.fakedesignerwatches.com/]швейцарские механические движения реплики[/url][/b][b][url=http://ru.fakedesignerwatches.com/]часы[/url][/b][b][url=http://www.fakedesignerwatches.com/ru/]часы[/url][/b]
[b][url=http://ru.fakedesignerwatches.com/]швейцарские механические движения реплики[/url][/b][b][url=http://ru.fakedesignerwatches.com/]часы[/url][/b][b][url=http://www.fakedesignerwatches.com/ru/]часы[/url][/b]
[b][url=http://ru.fakedesignerwatches.com/]высокое качество реплики[/url][/b]
[b][url=http://www.fakedesignerwatches.com/ru/]высокое качество реплики[/url][/b]
Posted on 07th Feb, 2017
ndoironraina
часы цена | часы цена | Лучшие копии часов
часы цена | часы цена | Лучшие копии часов
Лучшие швейцарские часы реплики
Лучшие копии часов
Posted on 07th Feb, 2017
ndoironraina
[b][url=http://www.replicawatcheslove.co/ru/]высокое качество реплики[/url][/b]
[b]часы[/b]
[b][url=http://www.replicawatcheslove.co/ru/]швейцарские механические движения реплики[/url][/b]

[b][url=http://www.replicawatcheslove.co/ru/]высокое качество реплики[/url][/b]
[b][url=http://www.replicawatcheslove.co/ru/]часы[/url][/b]
[b][url=http://www.replicawatcheslove.co/ru/]швейцарские механические движения реплики[/url][/b]

[b][url=http://www.replicawatcheslove.co/ru/]швейцарские часы реплики AAA +[/url][/b]
[b][url=http://www.replicawatcheslove.co/ru/]швейцарские часы реплики[/url][/b]
Posted on 07th Feb, 2017
ndoironraina
[b][url=http://www.cover4weddings.co/ru/]Свадебное платье Factory Outlet[/url][/b][b]Свадебное платье Factory Outlet[/b][b][url=http://www.cover4weddings.co/ru/]Свадебное платье Factory Outlet[/url][/b]
[b][url=http://www.cover4weddings.co/ru/]Свадебное платье Factory Outlet[/url][/b][b][url=http://ru.cover4weddings.co/]Свадебное платье Factory Outlet[/url][/b][b][url=http://www.cover4weddings.co/ru/]Свадебное платье Factory Outlet[/url][/b]
[b][url=http://ru.cover4weddings.co/]Купить Свадебные платья[/url][/b]
[b][url=http://www.cover4weddings.co/ru/]Купить Свадебные платья[/url][/b]
Posted on 07th Feb, 2017
ndoironraina
[b]швейцарские механические движения реплики[/b]
[b][url=http://www.tagwatches.co/ru/]часы[/url][/b]
[b][url=http://www.tagwatches.co/ru/]швейцарские механические движения реплики[/url][/b]

[b][url=http://www.tagwatches.co/ru/]швейцарские механические движения реплики[/url][/b]
[b][url=http://www.tagwatches.co/ru/]часы[/url][/b]
[b][url=http://www.tagwatches.co/ru/]швейцарские механические движения реплики[/url][/b]

[b][url=http://www.tagwatches.co/ru/]швейцарские часы реплики AAA +[/url][/b]
[b]швейцарские часы реплики[/b]
Posted on 07th Feb, 2017
ndoironraina
Скидка MonclerДешевые MonclerДешевые розетки Moncler Куртки онлайн
Скидка MonclerДешевые MonclerДешевые розетки Moncler Куртки онлайн
Moncler продажа
Moncler Outlet Store
Posted on 07th Feb, 2017
ndoironraina
Скидка Moncler на продажуДешевые MonclerДешевые розетки Moncler Куртки онлайн
Скидка Moncler на продажуДешевые MonclerДешевые розетки Moncler Куртки онлайн
Moncler продажа
Moncler Outlet Store

Your Answer:

Login to answer
170 Like 49 Dislike
Previous forums Next forums
Other forums

Keeping data in form
How can I keep whatever I write in the form?

Check before inserting in DB ???
This is my code
---------------
if ( $_POST ['Submit'])
{{
$username = $_POST ['usernm

ECC6 - Single sign-on
We are in the process of upgrading to ECC 6 which will support single sign on with user passwords al

Procedural to OOP
ohn Kleijn said that to avoid writing "crappy code", we should learn OOP and common OO pri

using variables in another page
I have a test database set up on localhost. I have a form that I can type a name into, hit the butto

gmdate() - want 1 hr before time
Hi,
I am using php gmdate().
Now I am entering all dates in my dbase using gmdate("Y-m-d

PHP header help!
Hi all I am trying to get this php page to refresh every 5 seconds on my phone which is an aastra 48

strptime() equivalent for php4 ?!
Greetings!

this is my first post, thank you in advance for your replies.

Well, the ti

Typing math
I've added support for typesetting math using LaTeX on the forums.

Example:
Code: [Select]

want to add a break after a certain amount of characters
i was wondering how to add a break in a blog post after a certain amount of characters... any idea o

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash