Created
September 7, 2017 00:45
-
-
Save danielkwok21/82de055d03d172b75ff49f396a3311d9 to your computer and use it in GitHub Desktop.
Fully connected website
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<?php | |
include 'index.php'; //connects website to database | |
?> | |
<link href="potato.css" rel="stylesheet" type="text/css" /> | |
<html> | |
<head> | |
<h1>Hello potato</h1> | |
<p>It's a wonderful day</p> | |
<div>Square</div> | |
</head> | |
<body> | |
</body> | |
</html> | |
<?php | |
closecon($conn); //closes connection | |
echo "Connection closed"; | |
?> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<script type="text/javascript" src="potato.js"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment