my script work fine if this function is written :
$extension_allowed =array(".pdf",".jpg",".jpeg",".png",".txt",".doc",".docx", ".odt", ".rtf", ".xls", ".xlsx", ".ods");
But, if I want config the extensions from application config and extract this extension from a query, how to pass the extensions inside an array?
// extensions
$extensionsUploadFileQ = mysql_query("
SELECT
*
FROM table_config
WHERE field1 = 'EXTENSIONS_UPLOAD'
");
$extensionsUploadFileR=mysql_fetch_array($extensionsUploadFileQ);
$extensionUploadFileParameter=$extensionsUploadFileR['value_extensions'];
the result of query, passing at the variable $extensionUploadFileParameter but not work by this array:
$extension_allowed =array($extensionUploadFileParameter);
How to fix this?
Thanks
but not workHOW?