además de eso para que haces dos veces el mysql_fetch_assoc??
Código PHP:
$R_2 = mysql_query($query_R_2, $conexion) or die(mysql_error());
$row_R_2 = mysql_fetch_assoc($R_2);
$totalRows_R_2 = mysql_num_rows($R_2);
y luego
Código PHP:
<table width="100%" border="0" cellspacing="0" cellpadding="0">;
while ($row_R_2 = mysql_fetch_assoc($R_2)
{
$html .=