Re: FRe[2]: [PHP-DB] MySQL Regular expression

2003-10-10 Thread O Franssen
Thanks very much for your help Rory. :) -- Regards, Owen Franssen Twisted Designmailto:[EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

FRe[2]: [PHP-DB] MySQL Regular expression

2003-10-10 Thread Rory McKinley
f people in this world, > those who understand binary and those who don't" (Unknown) > - Original Message - > From: "O Franssen" <[EMAIL PROTECTED]> > To: "Rory McKinley" <[EMAIL PROTECTED]> > Sent: Thursday, October 09, 2003 6:22 PM > Su

Re[2]: [PHP-DB] MySQL Regular expression

2003-10-09 Thread O Franssen
This almost worked :p I applied your suggestion in the following way: select * from ihrproperties where region = 'Kerry' and 0 < substring_index(substring_index(rates, ',', 41), ',', -1) < 1568 But of course my prices are saved as text so is there a way to type cast the result of the substri

Re[2]: [PHP-DB] MySQL Regular expression

2003-10-09 Thread O Franssen
-- Regards, Owen Franssen Twisted Designmailto:[EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP-DB] MySQL Regular expression

2003-10-09 Thread O Franssen
Actually in response to my previous comment, would the following achieve wwhat I want? ... and strcmp('$foot_budget', substring_index(substring_index(rates, ',', $selecteddate), ',', -1)) = -1 and strcmp('$head_budget', substring_index(substring_index(rates, ',', $selecteddate), ',', -1)) = 1 -

Re: [PHP-DB] MySQL Regular expression

2003-10-09 Thread Rory McKinley
t; To: <[EMAIL PROTECTED]> Sent: Thursday, October 09, 2003 1:49 PM Subject: [PHP-DB] MySQL Regular expression > I'm not a 100% sure if this is the correct list for the following > question, so I shall apologise beforehand if I upset any one. > > Now, I have a field in my da

Re: [PHP-DB] MySQL Regular expression

2003-10-09 Thread Ignatius Reilly
Best, of course, normalize your DB. But this may not be an option... HTH Ignatius _ - Original Message - From: "O Franssen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 09, 2003 1:49 PM Subject: [PHP-DB] MySQL Regular expression

[PHP-DB] MySQL Regular expression

2003-10-09 Thread O Franssen
I'm not a 100% sure if this is the correct list for the following question, so I shall apologise beforehand if I upset any one. Now, I have a field in my database table in the following format: 100,30,443, etc. Representing prices for 52(53) weeks of the year and comma delimited. Now I need to c