Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/02/2009, 08:35
diego007007
 
Fecha de Ingreso: enero-2009
Ubicación: en la casa
Mensajes: 223
Antigüedad: 15 años, 3 meses
Puntos: 3
Respuesta: presentacion de datos

hola Quim, consegui lo sigiente:
Código PHP:
$fechaminima='2009-02-11 05:40:00';
$fechamaxima='2009-02-DD 06:40:00';
$conexion mysql_connect("localhost""root""");
mysql_select_db("virusdb"$conexion);

$result1 mysql_query("SELECT * FROM md5 WHERE fecha>='$fechaminima' and fecha<='$fechamaxima', $conexion");
echo 
"<table width=300><tr><td><b>Numero</b></td><td><b>Fecha</b></td></tr>";
$j=0;
while(
$row=mysql_fetch_row($result1)){
    if (
$j&#37;2==0){
        
echo"<tr>
              <td><a href=\"$row[0]\">$row[0]</a></td><td>$row[1]</td>     
             </tr>"
;
    }else{
        echo
"<tr>
              <td>$row[0]</td><td>$row[1]</td>     
              </tr>"
;
    }
    
$j++;
}
echo
"</table>";
mysql_close($conexion); 
pero me da error:
Cita:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in Z:\home\localhost\www\www7\index3.php on line