Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/09/2003, 20:22
Avatar de nuevo
nuevo
 
Fecha de Ingreso: mayo-2003
Ubicación: Spain
Mensajes: 2.009
Antigüedad: 20 años, 11 meses
Puntos: 2
una pregunta... y pq si haces el query y preguntas cuantas filas hay.... se va a equivocar....

osea, si hay 6 filas... y el hace el rad de 1,6 , no creo que pueda da error nunca... digo yo?

igual no entendi la pregunta...


yo loque haria seria esto


Código PHP:

<?php

    
if (mysql_num_rows($resp2) !== 0) {

        
$datos mysql_fetch_array($resp2);

            echo 
"<a href=$datos[url] target=_blank><img src=$datos[img] alt=$datos[alt]></a>";

    }

        echo 
"<META HTTP-EQUIV=Refresh CONTENT=3;URL=home.php>ERROR, NO SE ENCONTRO NINGUNO"//recargamos la web otra vez

    
exit;//temino el script


?>
__________________
3w.valenciadjs.com
3w.laislatv.com

Última edición por nuevo; 29/09/2003 a las 20:28