Tymba grazie per l'aiuto...ecco il codice di questa pagina
ho diviso i $minilogo in due SELECT in modo da avere 2 righe con 4 minilogo cadauna (per non aver problemi di visualizzazione a risoluzioni diverse) ovvero cosi
grazie
ancora per il tuo tempo...
Codice PHP:
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCFF">
<tr>
<td align="center" bgcolor="#FFFFFF">
<?PHP
include("../dbinfo.inc.php");
$db = mysql_connect("$dbhost", "$dbuser", "$dbpass") or die("Problem connecting");
mysql_select_db("$dbname",$db)or die("Problem selecting database");
$result = mysql_query("SELECT minilogo, invio FROM $infogirone WHERE id_s < 5 ORDER BY RAND()",$db);
while($myrow = mysql_fetch_array($result))
{
$minilogo = $myrow["minilogo"];
$invio = $myrow["invio"];
$id_s = $myrow["id_s"];
?>
<table width="200" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="15" height="15" style="background: url(images/nero_tl.gif)">[img]images/spacer.gif[/img]</td>
<td width="100%" height="15" style="background: url(images/nero_t.gif)">[img]images/spacer.gif[/img]</td>
<td width="15" height="15" style="background: url(images/nero_tr.gif)">[img]images/spacer.gif[/img]</td>
</tr>
<tr>
<td width="15" style="background: url(images/nero_l.gif)">[img]images/spacer.gif[/img]</td>
<td style="background:#FFFFFF"> <? echo "$minilogo[img]../images/$invio[/img]"; ?></td>
<td width="15" style="background:url(images/nero_r.gif)">[img]images/spacer.gif[/img]</td>
</tr>
<tr>
<td width="15" height="15" style="background: url(images/nero_bl.gif)">[img]images/spacer.gif[/img]</td>
<td width="100%" height="15" style="background: url(images/nero_b.gif)">[img]images/spacer.gif[/img]</td>
<td width="15" height="15" style="background: url(images/nero_br.gif)">[img]images/spacer.gif[/img]</td>
<?
}
?></tr>
</table>
</td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">
<?PHP
include("../dbinfo.inc.php");
$db = mysql_connect("$dbhost", "$dbuser", "$dbpass") or die("Problem connecting");
mysql_select_db("$dbname",$db)or die("Problem selecting database");
$result = mysql_query("SELECT minilogo, invio FROM $infogirone WHERE id_s > 4 ORDER BY RAND()",$db);
while($myrow = mysql_fetch_array($result))
{
$minilogo = $myrow["minilogo"];
$invio = $myrow["invio"];
$id_s = $myrow["id_s"];
?>
<table width="200" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="15" height="15" style="background: url(images/nero_tl.gif)">[img]images/spacer.gif[/img]</td>
<td width="100%" height="15" style="background: url(images/nero_t.gif)">[img]images/spacer.gif[/img]</td>
<td width="15" height="15" style="background: url(images/nero_tr.gif)">[img]images/spacer.gif[/img]</td>
</tr>
<tr>
<td width="15" style="background: url(images/nero_l.gif)">[img]images/spacer.gif[/img]</td>
<td style="background:#FFFFFF"> <? echo "$minilogo[img]../images/$invio[/img]"; ?></td>
<td width="15" style="background:url(images/nero_r.gif)">[img]images/spacer.gif[/img]</td>
</tr>
<tr>
<td width="15" height="15" style="background: url(images/nero_bl.gif)">[img]images/spacer.gif[/img]</td>
<td width="100%" height="15" style="background: url(images/nero_b.gif)">[img]images/spacer.gif[/img]</td>
<td width="15" height="15" style="background: url(images/nero_br.gif)">[img]images/spacer.gif[/img]</td>
<?
}
?></tr>
</table>
</td>
</tr>
</table>