PHP:
STEP 4
Add samples to DB:
News ticker sample is already in database. New sample is not needed.
Added first news.
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1452 Cannot add or update a child row: a foreign key constraint fails (`tibia`.`players`, CONSTRAINT `players_ibfk_1` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE)' in C:\xampp\htdocs\install.php:505 Stack trace: #0 C:\xampp\htdocs\install.php(505): PDO->query('INSERT INTO pla...') #1 {main} thrown in C:\xampp\htdocs\install.php on line 505
Hey, i have got that error... how can i fix it?
- - - Updated - - -
ok i fix that but now
Code:
Fatal error: Call to a member function query() on a non-object in C:\xampp\htdocs\install.php on line 489