Im learning PHP OOP little by little by myself...
I can't get this to work the way I want, im triying to do this:
http://localhost/test/class.php?action=delete
public $action;
public function __construct()
{
$this->action = isset($_GET['action']) ? $_GET['action'] : null;
$this->db = new Db();
$this->Select($action);
}
private function Select($action)
{
if ($action = 'delete')
{
echo "Here";
}
}
}
I think it's pretty basic.. but I can't get the solution by myself.. the screen just goes blank without errors and don't display anything. So i can´t search a solution...
Thank you