RE: parsing out quoted text

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Set your string to an array and use the elements in your query.



Jef

-----Original Message-----
From: sam [mailto:php@xxxxxxxx] 
Sent: Friday, June 09, 2006 6:53 AM
To: PHP
Subject:  parsing out quoted text


$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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux