Well then you will have to change your code, you will have to rely on people to use there own common sense, and i would just turn off error reporting on that page
error_reporting(0);
or
if(!isset($var))
{
header("Location:page.php");
}
yes, and if you read it
$id = $_GET['id'];
There fore it would be
$id = ;
And it would in result be undefined.
But when i wrote it, i thought he should of realised what i meant.
If you think that what i said was acting like a jerk, then you need to read what i said again.
It was a question, if you took it wrong thats your problem.
What's wrong with this way of connecting?
Has your connection been intercepted, and what does this have to do with OOP (as BillyBod said), there is no point in overcomplicating the connecting to the db.
Where is your attempt at error checking?
Echo the vars, check if they are correct, add error_reporting(E_ALL); to the top of the page
Please even try and fix it your self
Lol, no you don't need to call session_name or session_id, you just need session start.
But if he can post his full code with the errors he may get a faster/better answer.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.