Ver Mensaje Individual
  #8 (permalink)  
Antiguo 10/06/2009, 14:12
Avatar de rompeguesos
rompeguesos
 
Fecha de Ingreso: marzo-2009
Mensajes: 692
Antigüedad: 15 años, 2 meses
Puntos: 8
Respuesta: Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL resul

y asi?:

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>"