Ver Mensaje Individual
  #6 (permalink)  
Antiguo 29/01/2010, 05:34
Avatar de luis010182
luis010182
 
Fecha de Ingreso: julio-2009
Ubicación: Argentina - Capital Federal
Mensajes: 382
Antigüedad: 14 años, 10 meses
Puntos: 27
Respuesta: No puedo sacar datos de la tabla

Cita:
Iniciado por marinesky Ver Mensaje
Prueba esto:

Código PHP:
$comprobar=mysql_query("SELECT fichero FROM informe",$conexion); 

$resultado=mysql_query($comprobar);

while (
$row mysql_fetch_array($resultado))
 {
     echo 
"Fichero: ".$row['fichero']."<br>"

 }
    echo 
mysql_error(); 
Espero que te sirva.
El error esta en la primera linea

Código PHP:
$comprobar="SELECT fichero FROM informe"

$resultado=mysql_query($comprobar);

while (
$row mysql_fetch_array($resultado))
 {
     echo 
"Fichero: ".$row['fichero']."<br>"

 }
    echo 
mysql_error();