Re: parsing out quoted text

From: Date: Fri, 09 Jun 2006 13:09:36 +0000
Subject: Re: parsing out quoted text
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-237685@lists.php.net to get a copy of this message
$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!

« previous php.general (#237685) next »