Éste es el codigo del que dispongo.. Java script estoy bastante perdidisimo...
Cita: <?php
$table = "clients";
$query = "select * from $table";
$result = mysql_query($query);
$rows = 1;
while ($row= mysql_fetch_array($result)) {
if ($rows%2) {
echo "<td class=class1><a href=\"javascript:;\" onclick=\"abrirPopup('prueba.html', 'prueba', $var)\">".$row['name']."</a></td>";
echo '<td class="player-row">' .$row['name']. '</td>';
echo '<td class="player-row">' .$row['hits']. '</td>';
echo '<td class="player-row">' .$row['str']. '</td>';
echo '<td class="player-row">' .$row['kills']. '</td>';
echo '<td class="player-row">' .$row['guild']. '</td>';
}
else {
echo '<td class="player-name2">' . $row['name'] . '</td>';
echo '<td class="player-row2">' . $row['name'] . '</td>';
echo '<td class="player-row2">' . $row['hits'] . '</td>';
echo '<td class="player-row2">' . $row['str'] . '</td>';
echo '<td class="player-row2">' . $row['kills'] . '</td>';
echo '<td class="player-row2">' . $row['guild'] . '</td>';
}
echo '</tr>';
$rows++;
}
?>
Gracias de nuevo