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.
$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?


Sign In
Create Account


Back to top









