Mircov 6 stato grande!!
ti sono debitore!
però siccome sonoho fatto delle modifiche al codice da te mandato (quelle in rosso):
..il risultato è perfetto però mi stampa sempre il nome e il cognome del primo record su tutte le righe.codice:<table width="600" border="1" cellpadding="3" cellspacing="0" bordercolor="000000"> <tr> <td width="200" height="50">ID</td> <td width="200">NOME</td> <td width="200">COGNOME</td> </tr> <?PHP include("config.inc.php"); include("connessione.db.inc.php"); $sql="SELECT count(*) AS tot FROM $tabella"; $result=mysql_query($sql, $db); $row=mysql_fetch_array($result); $sql2="SELECT * FROM $tabella"; $result2=mysql_query($sql2, $db); $row2=mysql_fetch_array($result2); $i = 1; for ($row[tot] = 0; $row[tot] <= 11; $row[tot]++) { echo "<tr>\n <td height=\"50\">" . $row[tot] . "</td>\n <td>" . $row2[nome] . "</td> <td>" . $row2[cognome] . "</td> </tr>"; if ($i % 3 == 0) { echo "</table>\n <table width=\"600\" border=\"1\" cellpadding=\"3\" cellspacing=\"0\" bordercolor=\"000000\">\n <tr>\n <td width=\"200\" height=\"50\">ID</td>\n <td width=\"200\">NOME</td>\n <td width=\"200\">COGNOME</td>\n </tr>\n"; } $i++; } ?> </table>
puoi completare l'opera in modo da stampare su ogni riga il nome e cognome relativi al record... (mi sono espresso malissimo lo so..)
altra info: ho capito che cosa hai fai con il codice, mi manca solo da decifrare if ($i % 3 == 0)
che intendi con questo if?
grazie 1000!!![]()

ho fatto delle modifiche al codice da te mandato (quelle in rosso):
Rispondi quotando
!!
a questo punto con il while non mi serve più sapere il numero totale dei record (ricordi for ($count = 0; $count < 11; $count++) ... 11 lo sostituivo con il numero totale di record...) 