Ver Mensaje Individual
  #7 (permalink)  
Antiguo 12/10/2007, 07:06
Avatar de hulray
hulray
 
Fecha de Ingreso: septiembre-2006
Mensajes: 630
Antigüedad: 17 años, 8 meses
Puntos: 3
Re: Filtro por empresa...

me da este error

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 'WHERE realname =nombre_usuario at line 1


Código PHP:
$sel_sql "SELECT am_users.realname,am_inspeccion.ins_folio,am_inspeccion.ins_nomemp WHERE realname ='".$session["name"]."'"