Menu
I’m posting this from my phone. So I’ll explain this without too much code if I can.
I have an object, let’s call it a car class. I’m creating this on my public index page like this..
[code]
$car = new car;
$car->getID($_GET[‘Id’]);
Later on in my code I’m using other methods like
[code]
echo $car->getColor();
it all works nicety until I have an Id of something that doesn’t exist.
how should I manage this?