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

2001-09-11 Thread Rick Emery
the explode() should have worked on that. Something like: $query = SELECT DCD_Access FROM userdb WHERE ID = $user_ID; $result4 = mysql_query($query) or die(Error); $DCD = mysql_fetch_array($result4); $myarray = explode( ,, $DCD['DCD_Access'] ); foreach ( $myarray as $val ) { print

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

2001-09-11 Thread Andrey Hristov
$my_arr= array(.); echo implode(' ',array_keys($my_arr)); Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: Rick Emery [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 11, 2001 4:23 PM Subject: RE: [PHP-DB]

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

2001-09-11 Thread Andrey Hristov
, ok, sorry for the disturbance. greets. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: Rick Emery [EMAIL PROTECTED] To: 'Andrey Hristov' [EMAIL PROTECTED]; Rick Emery [EMAIL PROTECTED] Sent: Tuesday, September 11, 2001 4:39

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

2001-09-10 Thread Rick Emery
$myarray=explode(,,$DCD['fieldname']); In the above, substitute fieldname for the name of the field which contains name1,name2,name3,name4,... Then, cycle through each $myarray element as you've done below. -Original Message- From: Robert Trembath [mailto:[EMAIL PROTECTED]] Sent:

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] reading arrays within a field from

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

2001-09-10 Thread Rick Emery
what do you mean by it made no difference? Did you examine each element in $myarray? What were the results? rick FYI...I tried to send directly to you and the message was bounced back -Original Message- From: Robert Trembath [mailto:[EMAIL PROTECTED]] Sent: Monday, September 10, 2001

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

2001-09-10 Thread Rick Emery
Robert, Do a manual SELECT DCD_Access FROM userdb WHERE ID = ### and send the results. I'd like to see exactly what is in that field. The explode() should have provided an array of values rick -Original Message- From: Robert Trembath [mailto:[EMAIL PROTECTED]] Sent: Monday,