Re: [PHP] Matching

2009-01-31 Thread Ashley Sheridan
On Fri, 2009-01-30 at 21:33 -0500, Eric Butera wrote: On Fri, Jan 30, 2009 at 9:28 PM, Ron Piggott ron@actsministries.org wrote: How do I determine the value oftx from this string? page/words_from_the_well_checkout/?tx=8UM53005HH344951Tst=Completedamt=0.01 My desired

Re: [PHP] Matching

2009-01-31 Thread Eric Butera
On Sat, Jan 31, 2009 at 7:32 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2009-01-30 at 21:33 -0500, Eric Butera wrote: On Fri, Jan 30, 2009 at 9:28 PM, Ron Piggott ron@actsministries.org wrote: How do I determine the value oftx from this string?

Re: [PHP] Matching

2009-01-31 Thread Ashley Sheridan
On Sat, 2009-01-31 at 08:38 -0500, Eric Butera wrote: On Sat, Jan 31, 2009 at 7:32 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2009-01-30 at 21:33 -0500, Eric Butera wrote: On Fri, Jan 30, 2009 at 9:28 PM, Ron Piggott ron@actsministries.org wrote: How do I

Re: [PHP] Matching

2009-01-31 Thread Eric Butera
On Sat, Jan 31, 2009 at 9:33 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Sat, 2009-01-31 at 08:38 -0500, Eric Butera wrote: On Sat, Jan 31, 2009 at 7:32 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2009-01-30 at 21:33 -0500, Eric Butera wrote: On Fri, Jan 30,

Re: [PHP] Matching

2009-01-31 Thread Nathan Rixham
Eric Butera wrote: On Sat, Jan 31, 2009 at 9:33 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Sat, 2009-01-31 at 08:38 -0500, Eric Butera wrote: On Sat, Jan 31, 2009 at 7:32 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2009-01-30 at 21:33 -0500, Eric Butera wrote:

Re: [PHP] Matching

2009-01-30 Thread Eric Butera
On Fri, Jan 30, 2009 at 9:28 PM, Ron Piggott ron@actsministries.org wrote: How do I determine the value oftx from this string? page/words_from_the_well_checkout/?tx=8UM53005HH344951Tst=Completedamt=0.01 My desired answer is: 8UM53005HH344951T I am trying to capture the serial

RE: [PHP] Matching

2009-01-30 Thread David Swenson
How do I determine the value of tx from this string? page/words_from_the_well_checkout/?tx=8UM53005HH344951Tst=Completedamt=0.01 My desired answer is: 8UM53005HH344951T I am trying to capture the serial number which follows tx= and ends immediately before the Ron I'm sure Eric gave you the

Re: [PHP] Matching logins to an old htpasswd file

2007-03-03 Thread Holger Blasum
Hello Ryan, On 03-03, Ryan A wrote: test:dGRkPurkuWmW2 (test:test) test1:dGlAW3zdxeAG2 (test1:test1) $php -r print crypt('test',base64_encode('test'));; - dGRkPurkuWmW2 $php -r print crypt('test1',base64_encode('test1'));; - dGlAW3zdxeAG2 So compare the password string with the output of

Re: [PHP] Matching numbers 1-100

2007-02-04 Thread Richard Lynch
On Sat, February 3, 2007 11:09 am, Wikus Moller wrote: I want to know if anyone can help me with my code which matches a number to a range e.g. 1-15 and echoes an image if the number is in the range. The code would use the if statement and check if a variable for example 5 matches the range

Re: [PHP] Matching numbers 1-100

2007-02-03 Thread tedd
At 5:09 PM + 2/3/07, Wikus Moller wrote: Hi. I want to know if anyone can help me with my code which matches a number to a range e.g. 1-15 and echoes an image if the number is in the range. The code would use the if statement and check if a variable for example 5 matches the range like

Re: [PHP] Matching Number of Times a Word Occurs...

2005-04-19 Thread Matthew Fonda
Hello, http://us4.php.net/substr_count Regards, Matthew Fonda Russell P Jones wrote: Im trying to count the number of times a word occurs in a string - is the only way to do this preg_match_all? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Matching Number of Times a Word Occurs...

2005-04-19 Thread Prathaban Mookiah
substr_count() should be more easy, but limited in functionality. Prathap -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Matching *exact* string?

2004-10-31 Thread Klaus Reimer
Nick Wilson wrote: How can I alter the above so that only *exact* matches are banned? Using ^ and $ to mark the begin and end of the line. So try this /^$ip\$/ -- Bye, K http://www.ailis.de/~k/ (FidoNet: 2:240/2188.18) [A735 47EC D87B 1F15 C1E9 53D3 AA03 6173 A723 E391] (Finger [EMAIL PROTECTED]

RE: [PHP] matching search terms

2004-09-13 Thread Jay Blanchard
[snip] I am hoping that there is some internet resource [/snip] Which begs the question, have you STFW? http://www.google.com/search?q=search+functionhl=enlr=ie=UTF-8start= 10sa=N -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] matching certain values

2003-09-18 Thread Jason Wong
On Thursday 18 September 2003 15:55, Louie Miranda wrote: Im trying to match some words on the value that i have impost on php. But i dont know why it doesnt seem to catch some certain fields. if ($HTTP_USER_AGENT === 'MSIE ') I know something is wrong :( Did you *try* finding out what is

Re: [PHP] matching certain values

2003-09-18 Thread Louie Miranda
thanks for the reference. strpos will be good for my problem. - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 18, 2003 4:11 PM Subject: Re: [PHP] matching certain values On Thursday 18 September 2003 15:55, Louie Miranda wrote

Re: [PHP] matching two form fields function?

2002-05-23 Thread Kevin Stone
Tis a tad easier than that. function match_str($str1, $str2) { if ($str1 == $str2) return true; else return false; } // If the fields don't match exit with error. if (!match_str($field1, $field2)) { echo The fields must match.; exit; } -Kevin - Original

Re: [PHP] matching two form fields function?

2002-05-23 Thread Dennis Moore
Also make sure you trim() the input variables before your comparison... 2cents... /dkm - Original Message - From: Kevin Stone [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 23, 2002 4:30 PM Subject: Re: [PHP] matching two form fields function? Tis a tad easier than

Re: [PHP] Matching strings in a flat/text file?

2001-10-23 Thread Pavel Jartsev
Nick Richardson wrote: ... Example: I want to pass a string using the URL (blah.php?car=civic_si) then search for ##civic_si in the text file, and print everything until it finds ##end. So the text file will look like this: ##civic_si This is my content, blah blah ##end ##nissan

Re: [PHP] Matching strings in a flat/text file?

2001-10-23 Thread Mark
On Mon, 22 Oct 2001 22:09:56 -0700, Nick Richardson wrote: Hey everyone, Anyone out there know how i could do this: I have a client who is an import car tuner. They would like to feature the cars they work on in their website. Instead of creating a new .html or .php file for every car they

RE: [PHP] Matching strings in a flat/text file?

2001-10-22 Thread Jack Dempsey
lots of ideas nick, but can you use a database? MySQL is free and i've found its almost always better to use databases when you can... if you can't, you could do something like this: 1. find the pos of the string you need using strpos 2. find the pos of the ending delimiter 3. substr from the

RE: [PHP] Matching strings in a flat/text file?

2001-10-22 Thread Nick Richardson
To: [EMAIL PROTECTED]; Nick Richardson Subject: RE: [PHP] Matching strings in a flat/text file? lots of ideas nick, but can you use a database? MySQL is free and i've found its almost always better to use databases when you can... if you can't, you could do something like this: 1. find the pos

Re: [PHP] Matching Question

2001-08-04 Thread Mark Maggelet
On Sat, 4 Aug 2001 12:40:42 -0500, Jeff Oien ([EMAIL PROTECTED]) wrote: After a sign up page I want to check if someone is already entered into a database. The First Name, Last Name and Address all have to match exactly in order for it to be considered a duplicate. However this isn't doing what I

RE: [PHP] Matching Question

2001-08-04 Thread Jeff Oien
Thank you. That worked and I'm sure will have made it work a lot faster later on when there is a lot of data in the database. Jeff Oien On Sat, 4 Aug 2001 12:40:42 -0500, Jeff Oien ([EMAIL PROTECTED]) wrote: After a sign up page I want to check if someone is already entered into a database.

RE: [PHP] Matching Question

2001-08-04 Thread hassan el forkani
ok, if i understand you correctly, you're taking data from a form and want to check that it is not already in the database, right? then why don't you include the submitted vars in the query like this: $sql = SELECT First_Name, Last_Name, Address FROM $table_name WHERE (Family_Position = 'H' or

RE: [PHP] Matching irregular cases

2001-01-17 Thread jalist
(/me smacks head) thanks, completely forgot about that. Steve -Original Message- From: Robert Collins [mailto:[EMAIL PROTECTED]] Sent: 17 January 2001 15:57 To: 'jalist'; [EMAIL PROTECTED] Subject: RE: [PHP] Matching irregular cases Steve, Try the ereg_replace()somthing like

Re: [PHP] Matching irregular cases

2001-01-17 Thread Toby Butzon
displayed, I want to change the search query so it stands out in the result list. I'm just using... ereg_replace($search_query, "b$search_query/b", $row[6]); ...at the moment, but it wont match results where the case doesn't match. Try eregi_replace... php.net/eregi_replace --Toby --