[PHP] array2string

2005-09-10 Thread David Christensen
quot;1,5,2" Thanks for your help, David Christensen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Regular expression help

2005-08-02 Thread David Christensen
I just plain suck at regex, so I was hoping to get some hints from you regex experts out there. I'm sure it's been done a thousand times, but I can't seem to find what I'm looking for with a simple google search: $phone could be "1234567890" OR $phone could be "123-456-7890" OR $phone could be "(

Re: [PHP] Dropdown Building Function

2005-07-29 Thread David Christensen
On Fri, 2005-07-29 at 15:58 -0400, Jack Jackson wrote: > Hi, can anyone even point me in a *direction*? I suppose this is the > most complex thing I've ever tried to do and I have been at it for tens > of hours and am still completely baffled. > > > Jack Jackson wrote: > > Hi, > > because that

Re: [PHP] control-M

2005-05-05 Thread David Christensen
o all of the "textarea" fields. I think I can be pretty sure the user won't need to enter any HTML into this fields. Thanks Marek! You pointed me in the right direction! On Thu, 2005-05-05 at 20:08 +0200, Marek Kilimajer wrote: > David Christensen wrote: > > I am? That n

Re: [PHP] control-M

2005-05-05 Thread David Christensen
elp, Dave On Thu, 2005-05-05 at 16:11 +0200, Marek Kilimajer wrote: > David Christensen wrote: > > Actually, I forgot to also mention that the browser is changing the > > control-M (^M) from the query when it sets the default value for the > > textarea to "". I guess

Re: [PHP] control-M

2005-05-05 Thread David Christensen
; str_replace instead of a regular expression since you'll know exactly > what/ where the string is that you want to get rid of. > > If ^M isn't actually being detected as a literal string you would just > replace it with the ASCii value inside of the chr() function.I > t

Re: [PHP] control-M

2005-05-05 Thread David Christensen
These aren't text files, there form fields from a browser and fields from query. I don't think dos2unix will be of much help with this. Dave On Thu, 2005-05-05 at 09:07 +0300, Petar Nedyalkov wrote: > On Thursday 05 May 2005 06:13, David Christensen wrote: > > I know I'

Re: [PHP] control-M

2005-05-05 Thread David Christensen
uot;, "\n", $_POST[$field]); $_POST[$field] = strip_tags($_POST[$field], ''); in a foreach loop for all the $_POST vars, but it's still not removing it. Dave On Thu, 2005-05-05 at 10:12 +0200, Marek Kilimajer wrote: > David Christensen wrote: > > I know I&#x

[PHP] control-M

2005-05-04 Thread David Christensen
I know I'm missing something, but I can't seem to find it or figure it out. I've done the google search, and I've done a quick scan of the list archives, but I can't seem to find the right way to remove control-M from a form submission page with textarea fields. I have a series of "textarea" fiel

RE: [PHP] collapse SELECT from multiple tables

2005-03-24 Thread David Christensen
u, 2005-03-24 at 13:02 -0800, Chris W. Parker wrote: > David Christensen <mailto:[EMAIL PROTECTED]> > on Thursday, March 24, 2005 12:34 PM said: > > > I don't know how to say it any plainer than that. > > > > The original post would have produced the f

RE: [PHP] collapse SELECT from multiple tables

2005-03-24 Thread David Christensen
part3' Thanks for your help. I think I may have to redesign this thing to make this easier or I maybe I just don't have the vocabulary to ask the question correctly. On Thu, 2005-03-24 at 12:17 -0800, Chris W. Parker wrote: > David Christensen <mailto:[EMAIL PROTECTED]> >

RE: [PHP] collapse SELECT from multiple tables

2005-03-24 Thread David Christensen
NO Spanky! I figured it was implied that I was looking for a PHP solution since I posted to a PHP list! I also didn't ask for help with HTML output. I was asking for help with PHP output! Let me try to explain it a little better... I need to produce an array of results from two tables. The fi

RE: [PHP] collapse SELECT from multiple tables

2005-03-24 Thread David Christensen
YES! All it does differently is truncate the output to one row per entry in tableA. On Thu, 2005-03-24 at 11:35 -0800, Chris W. Parker wrote: > David Christensen <mailto:[EMAIL PROTECTED]> > on Thursday, March 24, 2005 11:24 AM said: > > > Your example doesn'

RE: [PHP] collapse SELECT from multiple tables

2005-03-24 Thread David Christensen
Your example doesn't produce the desired the results! The reason I posted to the PHP list was I thought I would have to apply some ARRAY functions to produce the output I'm looking for. Your example did nothing more than mine produced. On Thu, 2005-03-24 at 12:48 -0600, Jay Blanchard wrote: > [

[PHP] collapse SELECT from multiple tables

2005-03-24 Thread David Christensen
I'm trying to figure out the best way to handle a SELECT from multiple tables where a single ID in tableA relates to multiple ID's in tableB: "SELECT tableA.ID, tableB.data FROM tableA, tableB WHERE tableA.ID=3 AND tableA.ID=tableB.tableAID" What I'm trying to product is an array output similar t

Re: [PHP] Re: Reading from a file using fgets()

2002-08-29 Thread David Christensen
w.php.net/manual/en/function.file.php > > - E > > > > >Interesting. It's not documented. > > > > > >On Thu, 2002-08-29 at 14:44, Dallas Thunder wrote: > > > Well, this is exactly what function file() does. > > > > > > &qu

Re: [PHP] Re: Reading from a file using fgets()

2002-08-29 Thread David Christensen
Interesting. It's not documented. On Thu, 2002-08-29 at 14:44, Dallas Thunder wrote: > Well, this is exactly what function file() does. > > "David Christensen" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... &

[PHP] Reading from a file using fgets()

2002-08-29 Thread David Christensen
When PHP reads from a file using fgets(), does it do it in order? Meaning, when reading STDIN from a file, does it read line1, then line2, line3, and so on until EOF? My purpose is to read each line of file and push it into an array. Thanks for your help, Dave -- PHP General Mailing List

[Fwd: Re: [PHP] Dumb question]

2002-08-21 Thread David Christensen
--- Begin Message --- On Wed, 2002-08-21 at 20:35, Bob Irwin wrote: > You need to declare $vari as a global variable. > > > eg; > > function getvar() > { > global $vari; > > $vari = "bollocks"; > } > > getvar(); > echo $vari; > ?> > > Best Regards > Bob Irwin > Server Admin & Web P

Re: [PHP] Help w/IMAP

2002-08-21 Thread David Christensen
;; print "" . $msg_header->date . "\n"; print "" . $msg_header->Date . "\n"; print "" . $msg_header->MailDate . "\n"; print "\n"; } << SNIP On Wed, 2002-08-21 at 20:42,

[PHP] Help w/IMAP

2002-08-21 Thread David Christensen
I'm having a weird problem with the certain "date" fields using the imap_head() object in PHP4. Sorry about the long lines, but I wanted to get all the fields for imap_header() in so you could see what I mean. Index Size udate dateDate