Ver Mensaje Individual
  #9 (permalink)  
Antiguo 24/03/2010, 17:27
antony1204
 
Fecha de Ingreso: marzo-2010
Mensajes: 14
Antigüedad: 14 años, 1 mes
Puntos: 0
Respuesta: problema con opcion buscar php sql

lo hago asi

mysql_select_db($database_BBDanco, $BBDanco);
$query_Profesores= "SELECT * FROM cuenta where id_cuenta=$filtro" ;
$query_limit_Profesores = sprintf( $query_Profesores, $startRow_Profesores, $maxRows_Profesores);
$Profesores = mysql_query($query_limit_Profesores, $BBDanco) or die(mysql_error());
$row_Profesores = mysql_fetch_assoc($Profesores);
echo $query_Profesores;

y nada me sale el mismo error de antes

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

asi

mysql_select_db($database_BBDanco, $BBDanco);
$query_Profesores= "SELECT * FROM cuenta where id_cuenta=$filtro" ;
echo $query_Profesores;

y nada