Ver Mensaje Individual
  #10 (permalink)  
Antiguo 10/06/2009, 14:16
Fabj21
 
Fecha de Ingreso: mayo-2009
Mensajes: 46
Antigüedad: 15 años
Puntos: 0
Respuesta: Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL resul

Código PHP:
$carrera "Ingeniería Industrial";
    
conectarse();
    
$sql "SELECT jefe,departamento FROM estudiosprofesionales WHERE carrera = '$carrera'";
    
$res mysql_query($sql) or die(mysql_error());
    
$row mysql_fetch_array($res); #puedes tambien colocar mysql_fetch_assoc() o mysql_fetch_array();    
    
$jefe $row['jefe'];
    
$departamento $row['departamento'];
    
    echo 
"<strong>Depto : </strong>$departamento<br><strong>Jefe : </strong>$jefe<br>"
asi lo tengo......y

me sigue saliendo

Depto :
Jefe :

Saludos y gRACIAS