Foros del Web » Programando para Internet » PHP »

Ayudenme con un codigo, tengo unos bugs

Estas en el tema de Ayudenme con un codigo, tengo unos bugs en el foro de PHP en Foros del Web. Hola, he estado usando un fotolog multiusuario, http://www.buscasdeweb.com/fotolog como se darán cuenta abajo aparecen las fotos mas recientemente publicadas, pero en los dos ultimos dos ...
  #1 (permalink)  
Antiguo 12/04/2008, 21:33
Avatar de alexfut  
Fecha de Ingreso: diciembre-2007
Ubicación: México
Mensajes: 484
Antigüedad: 16 años, 4 meses
Puntos: 8
Ayudenme con un codigo, tengo unos bugs

Hola, he estado usando un fotolog multiusuario, http://www.buscasdeweb.com/fotolog

como se darán cuenta abajo aparecen las fotos mas recientemente publicadas, pero en los dos ultimos dos espacios no aparece ninguna y eso que ya hay bastantes, que peude ser el error, les paso el codigo del index.

Código:
<BR>
          </div></TD></TR></TBODY></TABLE>
        <BR></TD>
      <TD width="184" 
    vAlign=top bgColor=#e8e6d7 
    style="PADDING-RIGHT: 0px; BACKGROUND-POSITION: right bottom; PADDING-LEFT: 0px; BACKGROUND-IMAGE: url(images/menuD/17_fim.gif); PADDING-BOTTOM: 0px; PADDING-TOP: 0px; BACKGROUND-REPEAT: no-repeat">
        <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
          <TBODY>
            <TR>
              <TD style="BACKGROUND-COLOR: #d0cfc1" vAlign=top><IMG 
            src="imagenes/archivos/busca_marca.gif" align=absMiddle><B><font color="#666666">BUSCA&nbsp;&nbsp;POR&nbsp;&nbsp;FOTOLOG</font></B></TD>
              </TR></TBODY></TABLE>
        <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
          <TBODY>
            <TR>
              <TD><IMG 
            src="imagenes/archivos/14_los_mas_actualizados.gif"><BR>
                <?php
		  echo "<span class = \"style1\">";
		  $count_users = mysql_query("SELECT count(*) as total FROM $tab_users"); ## CONTA QUANTOS REGISTROS TEM ##
		  $numero_users = mysql_fetch_array($count_users); ## CRIA UM ARRAY COM TODAS AS TABELAS #
		  $quantos_users = $numero_users['total'];
		  
		  $count_comen = mysql_query("SELECT count(*) as total FROM $tab_coments"); ## CONTA QUANTOS REGISTROS TEM ##
		  $numero_comen = mysql_fetch_array($count_comen); ## CRIA UM ARRAY COM TODAS AS TABELAS #
		  $quantos_comen = $numero_comen['total'];
		  
		  $count_fotos = mysql_query("SELECT count(*) as total FROM $tab_fotos"); ## CONTA QUANTOS REGISTROS TEM ##
		  $numero_fotos = mysql_fetch_array($count_fotos); ## CRIA UM ARRAY COM TODAS AS TABELAS #
		  $quantos_fotos = $numero_fotos['total'];
		  
		  $count_valida = mysql_query("SELECT count(*) as total FROM $tab_valida"); ## CONTA QUANTOS REGISTROS TEM ##
		  $numero_valida = mysql_fetch_array($count_valida); ## CRIA UM ARRAY COM TODAS AS TABELAS #
		  $quantos_valida = $numero_valida['total'];
		  
		  $count_denun = mysql_query("SELECT count(*) as total FROM $tab_denuncia"); ## CONTA QUANTOS REGISTROS TEM ##
		  $numero_denun = mysql_fetch_array($count_denun); ## CRIA UM ARRAY COM TODAS AS TABELAS #
		  $quantos_denun = $numero_denun['total'];
		  
		  $count_visitas = mysql_query("SELECT * FROM $tab_visitas");
		  $numero_visitas =  mysql_fetch_array($count_visitas);
		  $quantos_visitas = $numero_visitas['visitas'];
		  
		  $count_acess = mysql_query("SELECT * FROM $tab_ranking");
		  $quantos_acess = 0;
		  while($numero_acess = mysql_fetch_array($count_acess)){
		  	$quantos_acess = $quantos_acess + $numero_acess['visitas'];
		  }
		  br();
		  echo "<center><b><font face= 'Verdana' color='#666666' size='2'> Usuários en Validación :</br><b>$quantos_valida</b></br>";
		  
		  echo "<b><font face= 'Verdana' color='#666666' size='2'> Total de Comentários :</br><b>$quantos_comen</b></br>";
		   		  
		  echo "<b><font face= 'Verdana' color='#666666' size='2'> Total de Fotos :</br><b>$quantos_fotos</b></br>";
		  
		  echo "<b><font face= 'Verdana' color='#666666' size='2'> Total de Visualizaciones :</br><b>$quantos_acess</b></br></br>";
		  
		  echo "<b><font face= 'Verdana' color='#ffffff' size='3'> Total de Usuários :</br><b>$quantos_users</b></font></b><center>";
		  
		  ?>
                <BR>
                <BR>
                <BR>
                <IMG 
            src="imagenes/archivos/16_nuevos_flogs.gif"><BR>
                <span class="style3">
                  <?php
		  echo "<span class = 'style3'>";
		  $query_ultimos = mysql_query("SELECT * FROM $tab_users ORDER BY id DESC LIMIT 0,11") or die(print(mysql_error()));
		  while($data_ultimos = mysql_fetch_array($query_ultimos)){
		  	echo "<a href = \"{$data_ultimos['login']}\">".$data_ultimos['login']."</a>";
			br();
		  }
		  echo "</span>";	  
    ?>
                  </span> <BR>
                <BR>
                <BR>
                <BR></TD></TR></TBODY></TABLE></TD></TR></TBODY>
    </TABLE>
  <TABLE cellSpacing=0 cellPadding=0 width=779 
background=imagenes/archivos/18_fondo.jpg border=0>
    <TBODY>
      <TR>
        <TD><IMG src="imagenes/archivos/19_logo.gif" width="149" height="101"><img 
      src="imagenes/archivos/20_copy.gif"></TD>
      <TD vAlign=top><IMG src="imagenes/archivos/21.gif"><BR>
        <A 
      href="index.php"><IMG 
      src="imagenes/archivos/22_home.gif" border=0></A><BR>
        <A 
      href="regiistro.php"><IMG 
      src="imagenes/archivos/23_registro.gif" border=0></A><BR>
        <A 
      href="http://www.buscasdeweb.com/contacto.html" target="_blank"><IMG 
      src="imagenes/archivos/24_contacto.gif" border=0></A></TD>
      </TR></TBODY>
    </TABLE>
  <TABLE cellSpacing=0 cellPadding=0 width=779 
background=imagenes/archivos/03_fondo.jpg border=0>
    <TBODY>
      <TR>
        <TD 
    style="PADDING-RIGHT: 10px; FONT-SIZE: 10px; FONT-FAMILY: verdana; LETTER-SPACING: -1px" 
    align=middle><div align="center"><A 
      style="FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: verdana; TEXT-DECORATION: none" 
      href="http://www.buscasdeweb.com/fotolog" 
      target=_blank>Álbum de fotos gratuito en internet - Coloque sus fotos en internet y monte su diário de maneira fácil, prática y rápida<br>
        Fotolog personal grátis con mural de recados y álbum de amigos y mucho más.</A> </div></TD>
      </TR></TBODY>
    </TABLE>
  <IMG 
height=1 alt="" src="imagenes/archivos/UV.gif" width=1 border=0><IMG 
height=0 alt="" src="imagenes/archivos/UV.gif" width=0 border=0> 
</div>
</BODY></HTML>
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:26.