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

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\Archivos de programa\EasyPHP 3.0\www\Martes09\test5.php on line 6..

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_assoc($res)or die(mysql_error());
$jefe $row['jefe'];
$departamento $row['departamento'];

echo 
"<strong>Depto : </strong>$departamento<br><strong>Jefe : </strong>$jefe<br>"
puse mysql_error() y me aparece esto
Código PHP:
Algo está equivocado en su sintax cerca '*a Industrial' en la linea 1 
pero no entiendo

Saludos y Gracias..