Ok I have this function:
PHP Code:
function saveSettings()
{
global $db;
$xsdl_active = $_REQUEST['xsdl_active'];
$server_path = $_REQUEST['server_path'];
$xsdl_closed = $_REQUEST['xsdl_closed'];
$nav_active = $_REQUEST['nav_active'];
$xsdl_file_name = $_REQUEST['xsdl_file_name'];
$db->query_write("
UPDATE `" . TABLE_PREFIX . "xsdl_settings`
SET set_value= array('$xsdl_closed', '$server_path', '$xsdl_active', '$nav_active', '$xsdl_file_name') WHERE varname = array('xsdl_closed', 'server_path', 'xsdl_active', 'nav_active', 'xsdl_file_name')
");
return $db->insert_id();
}
I'm not sure how I should use array so it will run as I show above. I tried that but it failed, gonna keep trying while I wait for a reply here but could anyone give me the proper way to handle array's like above?
Thanks
Steve