Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Getting an error #2

Copy link
Copy link
Open
Open
Copy link
@Chrizzor84

Description

@Chrizzor84
Issue body actions

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]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.