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 "
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
> 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
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
]]
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
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
$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
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
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