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
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
pero no entiendo
Saludos y Gracias..