Ver original$samp5 = $mysql->consulta("SELECT * FROM `amigos` WHERE `id_emisor` = '".$row['id']."' AND `id_aceptado` = '1' ORDER BY RAND()"); while($amg5 = mysql_fetch_array($samp5)){