Código
<? include ("config.php"); $id = $_GET['id']; $sql = "select * from peliculas where id=$id"; //Instrucción a ejecutarse en la bbdd. //Ejecución de la instrucción //Recuperar los datos de un registro o hilera (row) y meterlo a un array echo "<b>".$row['des']."</b>"; } ?>
el caso es que si hago abro archivo.php me da los siguientes errores:
Código:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home2/x/public_html/x/x.php on line 128
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home2/x/public_html/x/x.php on line 153
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
como podría hacer para que si entran en video.php no diera ese error?
gracias