Ver Mensaje Individual
  #1 (permalink)  
Antiguo 31/12/2009, 11:17
mauro630
 
Fecha de Ingreso: diciembre-2009
Mensajes: 28
Antigüedad: 14 años, 5 meses
Puntos: 0
me tira error no se porque

Código PHP:
$le=$_POST['le'];//viene a ser un numero
$lec="leccion";
$leccion=$lec.le;
$idemysql_fetch_array(mysql_query("select id from ".$leccion." where nombre=".$name." and contrasena=".$pass.""));
$nommysql_fetch_array(mysql_query("select nombre from ".$leccion." where id=".$ide[0].""));
$pasmysql_fetch_array(mysql_query("select contrasena from ".$leccion." where id=".$ide[0]."")); 
me da este error en esas lineas

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home2/asicomco/public_html/mostrar_lecciones.php on line 36

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home2/asicomco/public_html/mostrar_lecciones.php on line 37

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home2/asicomco/public_html/mostrar_lecciones.php on line 38
a que se debe ?? como lo arreglo gracias de antemano