Código PHP :
$query_GetSimilar = sprintf("SELECT * FROM z_movie,z_movie_genre ORDER BY z_movie.visits DESC WHERE z_movie_genre.id_genre = 8 LIMIT 18"); $GetSimilar = mysql_query($query_GetSimilar, conect::dbconect()) or die(mysql_error()); $row_GetSimilar = mysql_fetch_assoc($GetSimilar); $totalRows_GetSimilar = mysql_num_rows($GetSimilar);