Re: [PHP-DB] reading arrays within a field from mysql and separating the values

2001-09-11 Thread Andrey Hristov
uot; <[EMAIL PROTECTED]> Sent: Tuesday, September 11, 2001 4:39 PM Subject: RE: [PHP-DB] reading arrays within a field from mysql and separating the values > yes, is corrrect concerning implode(), which constructs a string from an > array. He already has string, such as "

RE: [PHP-DB] reading arrays within a field from mysql and separating the values

2001-09-11 Thread Rick Emery
ptember 11, 2001 4:23 PM Subject: RE: [PHP-DB] reading arrays within a field from mysql and separating the values > the explode() should have worked on that. Something like: > > $query = "SELECT DCD_Access FROM userdb WHERE ID = $user_ID"; > $result4 = mysql_query($query

Re: [PHP-DB] reading arrays within a field from mysql and separating the values

2001-09-11 Thread Andrey Hristov
> value or the word "Array" depending on how I try to get to the values. > > > - Original Message - > From: "Rick Emery" <[EMAIL PROTECTED]> > Newsgroups: php.db > To: <[EMAIL PROTECTED]> > Sent: Monday, September 10, 2001 4:27 PM > Subje

RE: [PHP-DB] reading arrays within a field from mysql and separating the values

2001-09-11 Thread Rick Emery
ess'] ); foreach ( $myarray as $val ) { print "$val\n"; } -Original Message- From: Robert Trembath [mailto:[EMAIL PROTECTED]] Sent: Monday, September 10, 2001 4:45 PM To: Rick Emery Subject: Re: [PHP-DB] reading arrays within a field from mysql and separating the values

RE: [PHP-DB] reading arrays within a field from mysql and separating the values

2001-09-10 Thread Rick Emery
]] Sent: Monday, September 10, 2001 3:53 PM To: Rick Emery Subject: Re: [PHP-DB] reading arrays within a field from mysql and separating the values The same as my original message. - Original Message - From: "Rick Emery" <[EMAIL PROTECTED]> Newsgroups: php.db To: <[EMAIL PROT

RE: [PHP-DB] reading arrays within a field from mysql and separating the values

2001-09-10 Thread Rick Emery
3:30 PM To: Rick Emery Subject: Re: [PHP-DB] reading arrays within a field from mysql and separating the values Rick, I tried it and it made no difference. Could you give me a more complete example? Thanks for the help. Robert - Original Message - From: "Rick Emery" <[EMAIL P

RE: [PHP-DB] reading arrays within a field from mysql and separating the values

2001-09-10 Thread Rick Emery
$myarray=explode(",",$DCD['DCD_Access']); Then, cycle through each $myarray element as you've done below. -Original Message- From: Robert Trembath [mailto:[EMAIL PROTECTED]] Sent: Monday, September 10, 2001 2:55 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] read

RE: [PHP-DB] reading arrays within a field from mysql and separating the values

2001-09-10 Thread Rick Emery
ath [mailto:[EMAIL PROTECTED]] Sent: Monday, September 10, 2001 2:55 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] reading arrays within a field from mysql and separating the values Hello everyone, Ran into a problem trying to get this to work. I have multiple names in a mysql field (DCD_Access) that c

[PHP-DB] reading arrays within a field from mysql and separating the values

2001-09-10 Thread Robert Trembath
Hello everyone, Ran into a problem trying to get this to work. I have multiple names in a mysql field (DCD_Access) that contains "name1, name2, name3, name4" and I want read this information as an array so I can use these values to populate a pull-down list using a while or foreach loop. Below is