//defino array con las etiquetas y las apariciones
//pongo un array lleno con datos de prueba, pero habría que generar este array desde base de datos
function nube_etiquetas($etiquetas,$veces){
$eee = amigable_spaces($etiquetas);
if($veces >= "11") {
if($etiquetas == "") {
echo'';
}
else {
echo''.$etiquetas.' ';
}
}
else {
if($etiquetas == "") {
echo'';
}
else {
echo''.$etiquetas.' ';
}
}
}
$buscquedas = mysql_query("select * from busquedas order by rand() limit 20");
while($datostags = mysql_fetch_array($buscquedas)) {
$etiquetas = $datostags[clave];
$veces = $datostags[veces];
nube_etiquetas($etiquetas,$veces);
}
?>
Buscador
echo $publicidad2[p5] ?>
Webs Amigas
if (!$pagina) {
$inicio = 0;
$pagina = 1;
}
else {
$inicio = ($pagina - 1) * $registros;
}
include("config.php");
$resultados = mysql_query("SELECT * FROM afiliados where estado='1' order by id desc");
$total_registros = mysql_num_rows($resultados);
$resultados = mysql_query("SELECT * FROM afiliados where estado='1' order by id desc");
$col = 0;
$max_col = 3; //<===== NUMERO DE COLUMNAS <======
while($array = mysql_fetch_array($resultados)) {
$aa = amigable($array[titulo]);
if($col < $max_col) {
?>
$tj = mysql_query("SELECT * FROM usuarios order by jugados desc LIMIT 10");
while($array = mysql_fetch_array($tj)) {
?>
echo $array[usuario] ?>
echo $array[jugados] ?>
}
?>
Plugins
Para visualizar correctamente los juegos que tenemos en JuegosDO.com, necesita tener instalados los siguientes Plugins
Más Jugados
$tj = mysql_query("select * from juegos WHERE estado = 1 order by visitas desc LIMIT 5");
while($datos = mysql_fetch_array($tj)) {
$URL_AMIGABLE = urls_amigables($datos[titulo]);
?>
$tj = mysql_query("select * from juegos WHERE estado = 1 order by rand() LIMIT 5");
while($datos = mysql_fetch_array($tj)) {
$URL_AMIGABLE = urls_amigables($datos[titulo]);
?>
$sql = "SELECT COUNT(*) AS total FROM juegos WHERE estado = 1 ";
$result_stat = mysql_query($sql);
$row_stat = mysql_fetch_array($result_stat);
printf("%d", $row_stat["total"]);
?>
Registrados:
$sql = "SELECT COUNT(*) AS total FROM usuarios";
$result_stat = mysql_query($sql);
$row_stat = mysql_fetch_array($result_stat);
printf("%d", $row_stat["total"]);
?>
}
else {
include("jugar.php");
}
?>
if (!$pagina) {
$inicio = 0;
$pagina = 1;
}
else {
$inicio = ($pagina - 1) * $registros;
}
include("config.php");
$resultados = mysql_query("SELECT * FROM afiliados where estado='1' order by id asc");
$total_registros = mysql_num_rows($resultados);
$resultados = mysql_query("SELECT * FROM afiliados where estado='1' order by id asc");
$col = 0;
$max_col = 10; //<===== NUMERO DE COLUMNAS <======
while($array = mysql_fetch_array($resultados)) {
$aa = amigable($array[titulo]);
if($col < $max_col) {
?>