SyntaxFix
Write A Post
Hire A Developer
Questions
You should use require_once and include_once. Inside parent.php use
include_once 'database.php';
And inside child1.php and child2.php use
include_once 'parent.php';