Código:
Por desgracia no tengo una captura de como estaba la tabla antes, pero ahora he hecho una captura para que veáis. echo '<center<table border="0">'; echo '<tr align="center"> <th>TITULO</th> <th>AÑO</th> <th>PAIS</th> <th>DURACION</th> <th>CALIDAD</th> <th>FORMATO</th> <th>CRITICA</th> <th>ESPECTADOR</th> <th>VISTA</th> <th>GENERO</th> <th>OSCARS</th></tr> <tr><td align="center" colspan="11"><hr class="linea" /></td></tr>'; for ($i=0; $i<$num_resultados; $i++) { $fila =mysql_fetch_array($resultados); if ($i%2==0){ echo '<tr class="tabla1"><td align="center" width="150">'; echo stripslashes($fila['titulo']); echo '</td>'; echo '<td align="center" width="100">'; echo stripslashes($fila['ano']); echo '</td>'; echo '<td align="center" width="150">'; echo stripslashes($fila['pais']); echo '</td>'; echo '<td align="center" width="150">'; echo stripslashes($fila['duracion']); echo '</td>'; echo '<td align="center" width="150">'; echo stripslashes($fila['calidad']); echo '</td>'; echo '<td align="center" width="150">'; echo stripslashes($fila['formato']); echo '</td>'; echo '<td align="center" width="100">'; echo stripslashes($fila['critica']); echo '</td>'; echo '<td align="center" width="100">'; echo stripslashes($fila['espectador']); echo '</td>'; echo '<td align="center" width="150">'; echo stripslashes($fila['vista']); echo '</td>'; echo '<td align="center" width="200">'; echo stripslashes($fila['genero']); echo '</td>'; echo '<td align="center" width="150">'; echo stripslashes($fila['oscars']); echo '</td></tr>'; echo '<tr><td align="center" colspan="11"><hr class="linea" /></td>'; } else{ echo '<tr class="tabla2"><td align="center" width="150">'; echo stripslashes($fila['titulo']); echo '</td>'; echo '<td align="center" width="100">'; echo stripslashes($fila['ano']); echo '</td>'; echo '<td align="center" width="150">'; echo stripslashes($fila['pais']); echo '</td>'; echo '<td align="center" width="150">'; echo stripslashes($fila['duracion']); echo '</td>'; echo '<td align="center" width="150">'; echo stripslashes($fila['calidad']); echo '</td>'; echo '<td align="center" width="150">'; echo stripslashes($fila['formato']); echo '</td>'; echo '<td align="center" width="100">'; echo stripslashes($fila['critica']); echo '</td>'; echo '<td align="center" width="100">'; echo stripslashes($fila['espectador']); echo '</td>'; echo '<td align="center" width="150">'; echo stripslashes($fila['vista']); echo '</td>'; echo '<td align="center" width="200">'; echo stripslashes($fila['genero']); echo '</td>'; echo '<td align="center" width="150">'; echo stripslashes($fila['oscars']); echo '</td></tr>'; echo '<tr><td align="center" colspan="11"><hr class="linea" /></td></tr>'; } } echo '</table></center><br>';
El estilo de los <tr> es simplemente un color de fondo diferente.
Gracias de antemano.