Erroret ne OOP

Home Forums Bugs Erroret ne OOP

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1412
    samiolelezi
    Participant

    Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘database_oop.users’ doesn’t exist in C:\xampp\htdocs\OOP\classes\db.class.php:145 Stack trace: #0 C:\xampp\htdocs\OOP\classes\db.class.php(145): PDOStatement->execute(Array) #1 C:\xampp\htdocs\OOP\classes\user.class.php(71): DB->query(‘show columns fr…’) #2 C:\xampp\htdocs\OOP\index.php(16): User->__call(‘get_by_id’, Array) #3 {main} thrown in C:\xampp\htdocs\OOP\classes\db.class.php on line 145

    #1413
    samiolelezi
    Participant

    you need to see the $values because all the problems is given there ive tried like this in the function run so the code executed without errors

     

    $stm = self::$con->prepare($this->query); // Prepare the SQL query

    // Use passed-in values or saved instance values
    $use_values = !empty($values) ? $values : $this->values;

     

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.