tom3
Active member
i would like to use a php script to add different route filters, which works pretty well. the filter is taken over into the database as well as into the acp, but the page to be called always says that it doesn't exist? have i missed something?
my sql statement:
my sql statement:
PHP:
$q = $db->query('INSERT INTO xf_route_filter (prefix, find_route, replace_route, enabled, user_id) VALUES ("resources", "resources/authors/'.$user[0]["user_id"].'/", "'.$_POST["url_value"].'/", 1, '.$user[0]["user_id"].')');