-
Notifications
You must be signed in to change notification settings - Fork 7
Getting an error #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Well, as I see the problem is with the namespace. Try to name it due to yor directory structure, it is another that I did (read about the namespace in php at first). |
Okay i took a clone of your project and its still giving me the same error. Also, if I look in your usage.php, I see the the following code: I tried reinstalling XAMPP but the problem stays the same I'm new at the whole php and pdo world. But it looks like no data is stored in $dbh |
I will check the class in my project till the end of week and write then. I hadn't the problem before. Thanks for issue. |
Hi, I'm trying to understand and learn php, pdo and oop'ing. But on testing this class, I'm getting an error:
Fatal error: Uncaught Error: Call to a member function getAttribute() on null in C:\xampp2\htdocs\oly-app\includes\Db.class.php:218 Stack trace: #0 C:\xampp2\htdocs\oly-app\index.php(37): lib\Db->select('spelers', Array) #1 {main} thrown in C:\xampp2\htdocs\oly-app\includes\Db.class.php on line 218
The code on line 37 is:
$player = $db->select('players', ['id' => 4]);
The text was updated successfully, but these errors were encountered: