09-27-2008, 02:35 PM
|
#1 (permalink)
|
|
The Visitor
Join Date: May 2005
Posts: 3
Thanks: 0
|
Need to convert string to array
Hi guys,
This seems really simple to me, but I've had no luck. I need help! :)
I've got file upload script which is working just fine. Here's the code I'm using to define the file extensions which are uploadable.
PHP Code:
$uploadtypes = array( "png", "gif", "jpeg", "jpe", "jpg", "fla", "html", "doc");
So, here's my problem. I want this editable in the GUI. So, I added a field in my MySQL database and had $uploadtypes equal the field.
I've tried several functions to separate the values and to explode into an array. No luck.
I want the end-use to type "png, gif, jpeg, fla" etc into a string. Then, I need that coverted into the PHP line above.
Any suggestions?
|
|
|
|