have you tried mysql_real_escape_string() or just addslashes()? Pete wrote: > > > In message <46A5F20A.1010206@xxxxxxxxxxxxx > <mailto:46A5F20A.1010206%40unisys.com.br>>, Sergio de A.Gonzalez > <sergioag@xxxxxxxxxxxxx <mailto:sergioag%40unisys.com.br>> writes > >but in my field I need to insert a text and within this text there is a > >'#' and is returning error > > 'INSERT INTO temptable SET two = "asd#asd";' > works fine for me... > > What error message are you getting? > > -- > Pete Clark > > Sunny Andalucia > http://www.hotcosta.com/comm_1.htm <http://www.hotcosta.com/comm_1.htm> > >