Ciao a tutti, dopo un po di tempo sono
riuscito a fare una cosa del genere
www.ilgiocattolaio.it/foto.htm
adesso vorrei che la visualizzazione
fosse di 2 articoli per ogni fila
ho provato a fare un ciclo for
ma succede un casino
potreste aiutarmi?
PHP:
<?php
//TABELLA COMANDO
echo"<table border='0' cellpadding='3' cellspacing='0' align='center'>";
echo"<tr valign='top'>";
echo"<td>";
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<TABELLA 2>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
echo"<table border='0' cellpadding='0' cellspacing='0'>";
echo"<tr>";
//echo"<td><img src='images/t_11.gif' width='10' height='9' border='0'></td>";
//echo"<td background='images/t_13.gif'><img src='images/t_12.gif' width='6' height='9' border='0'></td>";
//echo"<td background='images/t_13.gif' align='right'><img src='images/t_14.gif' width='6' height='9' border='0'></td>";
//echo"<td><img src='images/t_15.gif' width='10' height='9' border='0'></td>";
echo"</tr>";
echo"<tr valign='top'>";
//echo"<td background='images/t_fon_left.gif'><img src='images/t_21.gif' width='10' height='6' border='0'></td>";
echo"<td rowspan='2' colspan='2'>";
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<TABELLA 3>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
$x=0;
while($stampa_articoli=mysql_fetch_array($risultato_offerte))
{
echo"<table border='0' cellpadding='0' cellspacing='0' width='255'>";
echo"<tr>";
echo"<td><img src='images/temp01.gif' width='124' height='92' border='0'></td>";
echo"<td><p style='color: #1F86DE; font-size: 15px; padding-bottom: 0px;'><b>Pentium 4</b></p>
<p>CPU Intel P4 2GHz<br>
DIMM 256<br>
HDD 20 GB<br>
CASE MINITOWER</p>
<p style='color: #DA0008; font-size: 17px; padding-bottom: 5px;'><b>$ 500.00</b></p></td>";
echo"</tr>";
echo"</table>";
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<FINE TABELLA 3>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
echo"<div align='right'>
<a href=''><img src='images/b_buy.gif' width='113' height='34' border='0'></a>
<a href=''><img src='images/b_det.gif' width='113' height='34' border='0'></a> </div>";
echo"</td></td>";
echo"</tr>";
echo"<tr valign='bottom'>";
//echo"<td background='images/t_fon_left.gif'><img src='images/t_31.gif' width='10' height='7' border='0'></td>";
//echo"<td background='images/t_fon_right.gif'><img src='images/t_33.gif' width='10' height='7' border='0'></td>";
echo"</tr>";
echo"<tr>";
//echo"<td><img src='images/t_41.gif' width='10' height='10' border='0'></td>";
//echo"<td background='images/t_fon_bot.gif'><img src='images/t_42.gif' width='6' height='10' border='0'></td>";
//echo"<td background='images/t_fon_bot.gif' align='right'><img src='images/t_44.gif' width='6' height='10' border='0'></td>";
//echo"<td ><img src='images/t_45.gif' width='10' height='10' border='0'></td>";
echo"</tr>";
echo"</table>";
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<FINE TABELLA 2>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
echo"</td>";
echo"<td>";
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<TABELLA 4>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
echo"<table border='0' cellpadding='0' cellspacing='0'>";
echo"<tr>";
//echo"<td><img src='images/t_11.gif' width='10' height='9' border='0'></td>";
//echo"<td background='images/t_13.gif'><img src='images/t_12.gif' width='6' height='9' border='0'></td>";
//echo"<td background='images/t_13.gif' align='right'><img src='images/t_14.gif' width='6' height='9' border='0'></td>";
//echo"<td><img src='images/t_15.gif' width='10' height='9' border='0'></td>";
echo"</tr>";
echo"<tr valign='top'>";
//echo"<td background='images/t_fon_left.gif'><img src='images/t_21.gif' width='10' height='6' border='0'></td>";
echo"<td rowspan='2' colspan='2'>";
}
echo"</td>";
echo"</tr>";
echo"</table>";
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<FINE TABELLA 4>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
echo"</td>";
echo"</tr>";
echo"</table>";
//FINE TABELLA COMANDO
?>
da come potete notare stavo cominciando a fare un ciclo
$x=0;
ma poi mi è venuto il mal di testa
ciao da minatore
Ultima modifica: