Re: [PHP] Sigh....regex - need to search/replace string for anything but numbers

2005-01-25 Thread Rick Fletcher
Matt Babineau wrote: Ahh so the regex gods are pissed at me. This is simple (I think), but I need to figure out how to strip out everything in a string that is not a number. Any takers? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sigh....regex - need to search/replace string for anything but numbers

2005-01-25 Thread Rick Fletcher
Matt Babineau wrote: Ahh so the regex gods are pissed at me. This is simple (I think), but I need to figure out how to strip out everything in a string that is not a number. Any takers? I appear to have written that last snippet without really even looking at it. This one works. -- PHP General

Re: [PHP] Sigh :)

2002-12-06 Thread 1LT John W. Holmes
> OK, I think I've solved this, and you'll probably kick yourself when I explain it!" But first, a teaser: what looks like a double-quote in HTML, but isn't? Hey, if that's it, I get a free kick, too. I suggested that a while ago but there was no response. ---John Holmes... -- PHP General Ma

RE: [PHP] Sigh :)

2002-12-06 Thread Ford, Mike [LSS]
OK, I think I've solved this, and you'll probably kick yourself when I explain it!" But first, a teaser: what looks like a double-quote in HTML, but isn't? >-Original Message- >From: John Taylor-Johnston > If I run the SQL in PHPMyAdmin, (a MySQL web interface), it works. > > jdaxell.

Re: [PHP] Sigh :)

2002-12-04 Thread John Taylor-Johnston
Ray, I admit, it is a newer function in MySQL: http://www.mysql.com/doc/en/Fulltext_Search.html Since MySQL 3.23.23. All you need is a fulltext index. I am using, however, MySQL 4.0.5-beta-max-debug, but had the same problem in previous verisons. I have just never gottent his double quotes thi

Re: [PHP] Sigh :)

2002-12-04 Thread John Taylor-Johnston
Hi, I'm searching for an exact match of "ready maria". So I'm using the double quotes to demarcate the exact search, as per MySQL rules. I'm not searching for the double quotes. John Van Andel wrote: > One question that comes up is why are you putting the double quotes around the >search stri

RE: [PHP] Sigh :)

2002-12-04 Thread Van Andel, Robert
One question that comes up is why are you putting the double quotes around the search string ready maria? Should there be an entry in the database that includes the double quotes. Right now that is what your sql statement is looking for. So an entry like this Are you ready maria? Would not

Re: [PHP] Sigh :)

2002-12-04 Thread Ray Hunter
Which version of mysql are you using? -- Ray On Wed, 2002-12-04 at 10:33, John Taylor-Johnston wrote: > Hi, > > Can someone take a look at this again, please? > > http://news.php.net/article.php?group=php.general&article=126934 > > Your posts so far have proven fruitless. Thanks for trying. :)

Re: [PHP] sigh... forms

2002-07-11 Thread Richard Lynch
>Speaking of forms, and I'm sure lots have asked this before me, but anyone >know anywhere I can go to see some examples or existing code for >automatically generating and and validating dynamic forms? > >Wait though, I'm already doing this myself. To explain further, what I >really want is an

Re: [PHP] sigh... forms

2002-07-10 Thread Chris Earle
I don't have time to actually make the function for you, but I know it could be easily done with a single function and a double for loop, which could go through an two-dimensional array of the questions (first element), answers (next group except last), and the right answer (last element). basica

RE: [PHP] sigh... forms

2002-07-09 Thread Henning Sittler
Speaking of forms, and I'm sure lots have asked this before me, but anyone know anywhere I can go to see some examples or existing code for automatically generating and and validating dynamic forms? Wait though, I'm already doing this myself. To explain further, what I really want is an abstra

Re: [PHP] *sigh* xmldom win2k php4.1.2 apache

2002-03-26 Thread Analysis & Solutions
Hi Tobias: On Tue, Mar 26, 2002 at 11:02:50AM +0100, botsai wrote: > I worked with the xmldom under php4.0.6 and everything was fine and dandy, > though since I upgraded php on my staging server which is a win2k(pro) box > to 4.1.2 there has been no way to get the libxml to work. Forgive me for