holas
estoy intentando mostrar ciertos campos una tabla en la bd pero al hacerlo no imprime nada, la consulta no arroja ningun tipo de error. este es el codigo
<? require("conexion_mysql.inc");
$db = conectar_base_datos();
$consulta = "SELECT * FROM 'electivo' WHERE usuario = 'pabl.val'";
$res = mysql_query($consulta,$db);
// $row=mysql_fetch_array($res);
?>
<html>
<head>
<title>Untitled</title>
</head>
<body>
<table border="1">
<tr>
<td>Nombre: <?=$res['alumno_nom'];?></td>
<td>RUT: <?=$res['RUT'];?></td>
<td>Nº Matricula:</td>
</tr>
</table>
</body>
</html>
si intento hacer un mysql_fetch_array me tira el siguiente error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\appserv\www\trabajo\alumno.php on line 6
agradesco cualkier ayuda posible, ke realmente no entiendo porke el error
gracias