Say I have my file index.html
, and I want to include a.php
and b.html
in them. How exactly will I go by doing this?
Here's what I got in index.html
:
<!DOCTYPE html>
<html>
<head>
<title>SQL DB Demo</title>
<link rel="stylesheet" type="text/css" href="styles.css"/>
</head>
<body>
<!--Changes -->
<?php
include 'a.php';
?>
</body>
</html>
Here's my a.php
file:
<html>
<head>
<p>
Hello there, you rock.
</p>
</head>
</html>
And here's my b.html
file:
<html>
<head>
<p>
Hello there, you rock even more.
</p>
</head>
</html>
What do I need to do to get index.html
to display its contents along with the contents of a.php
and b.html
? Currently, the little part with include a.php
isn't working, so I thought I'd ask.
Thanks
` is not valid in `
` and `` is not flow content and therefore invalid in `` so just include `Hello, world
` not the rest.
– rism Jan 14 '16 at 01:33