Been stuck on this for hours, hope it is not something to simple.
So I'm trying to route 3 vars from one URL to another with this code:
$route['activate_email/(:any)/(:any)/(:any)'] = "user/activate/$1/$2/$3";
and the user controller code:
public function activate($code='', $email='', $id=''){
die("1");
//Check vars
if(empty($code) || empty($email) || empty($id) || !is_numeric(ceil($id))){
die("BAD");
}
//Check details in DB
$result = $this->db->query("SELECT * FROM `companies` WHERE `id` = ?", array($id))->result_array();
print_r($result);
exit;
}
Result:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, cgiadmin@yourhostingaccount.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. Thanks for any help