Date: 10/25/00
- Next message: Loh Siu Yin: "[phplib] Explanation: PHPLib 7.2b, PHP 4.0, MySQL 3.23 and duplicate entry in active_sessions"
- Previous message: Curtis, Lorenzo: "[phplib] Problem with a comma-delimited field."
- In reply to: Curtis, Lorenzo: "[phplib] Problem with a comma-delimited field."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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>
- Next message: Loh Siu Yin: "[phplib] Explanation: PHPLib 7.2b, PHP 4.0, MySQL 3.23 and duplicate entry in active_sessions"
- Previous message: Curtis, Lorenzo: "[phplib] Problem with a comma-delimited field."
- In reply to: Curtis, Lorenzo: "[phplib] Problem with a comma-delimited field."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

