RE: [phplib] Problem with a comma-delimited field. From: Matthias Endler (endler <email protected>)
Date: 10/25/00

> I have a database with one field that has to store comma-separated values.
>
> How can I pull that data and loop through it?
>
> e.g.,:
>
> Field: start,middle,finish
>
> Loop to produce separate lines for each

$value_array = explode(',',$db->f('df_commaseparated'));
while(list(,$value) = each($value_array)) {
        print "$value<br>\n";
}

Cheers,
Matthias

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>