i got your answers about the syntax, it works with the strings, but whenetat takes a variable value, it gives a parser error. example : select *from table where field like $txtthe error occurs when txt takes the value (doctortat d'etat).thanks