$str='bass "electric organ" bagpipes'; $parser($str); $query="SELECT * FROM table WHERE tb_instr = "bass" > AND tb_instr = "electric organ" //<<quoted phrase > AND tb_instr = "bagpipes"; Anybody know where I can just copy code that will do the above? thanks Why will there be a quoted string in the database? If the data is properly escaped there will be no need for this. Also, how can tb_str have three differing values? The query is flawed. Unless I have been in the sun for too long. Tell us in more detail what you are trying to do.
-- http://www.web-buddha.co.uk dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml, css) look out for project karma, our new venture, coming soon!