Potresti fare così
Codice PHP:
$i = 0
do {
if ($i < 3) {
echo "<tr> \n";
echo "<td bgcolor=#0000FF>".$row["canzone"]."</td> \n";
echo "<td bgcolor=#0000FF>".$row["artista"]."</td> \n";
echo "<td bgcolor=#0000FF>".$row["stilo"]."</td> \n";
echo "<td bgcolor=#0000FF>".$row["data"]."</td> \n";
echo "</tr> \n";
} else {
echo "<tr> \n";
echo "<td bgcolor=#FF8000>".$row["id"]."</td> \n";
echo "<td bgcolor=#FF8000>".$row["nombre"]."</td> \n";
echo "<td bgcolor=#FF8000>".$row["direccion"]."</td> \n";
echo "<td bgcolor=#FF8000>".$row["telefono"]."</td> \n";
echo "<td bgcolor=#FF8000>[email='".$row["email"]."']".$row["email"]."[/email]</td> \n";
echo "</tr> \n";
}
$i++;
}
while ($row = mysql_fetch_array($result)); // qui pongo la limitazione delle prime 3 righe con un colore
echo "
<a href=buscador_bd.html>Volver</p> \n";
echo "</table> \n";
per i valori di $i 0 1 e 2 prenderà in considerazione la prima parte, poi la seconda..