Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ff4c82
commit 89954b2
Showing
72 changed files
with
528 additions
and
831 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<!-- Script 3.3 - footer.html --> | ||
<!-- End of the page-specific content. --></div> | ||
<div id="footer"> | ||
<p>Copyright © <a href="#">Plain and Simple</a> 2007 | Designed by <a href="http://www.edg3.co.uk/">edg3.co.uk</a> | Sponsored by <a href="http://www.opendesigns.org/">Open Designs</a> | Valid <a href="http://jigsaw.w3.org/css-validator/">CSS</a> & <a href="http://validator.w3.org/">XHTML</a></p> | ||
</div> | ||
<footer class="footer"> | ||
<div class="container"> | ||
<p class="text-muted"><p>Copyright © 2017</p> | ||
</div> | ||
</footer> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
<!doctype html> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title><?php echo $page_title; ?></title> | ||
<link rel="stylesheet" href="includes/style.css" type="text/css" media="screen"> | ||
<meta charset="utf-8"> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title><?php echo $page_title; ?></title> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | ||
<link href="css/sticky-footer-navbar.css" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<div id="header"> | ||
<h1>Your Website</h1> | ||
<h2>catchy slogan...</h2> | ||
</div> | ||
<div id="navigation"> | ||
<ul> | ||
<em><a href="index.php">Home Page</a></em> | ||
<em><a href="register.php">Register</a></em> | ||
<em><a href="view_users.php">View Users</a></em> | ||
<em><a href="password.php">Change Password</a></em> | ||
<em><a href="#">link five</a></em> | ||
<nav class="navbar navbar-default navbar-fixed-top"> | ||
<div class="container"> | ||
<div class="navbar-header"><a class="navbar-brand" href="#">Your Website</a></div> | ||
<div id="navbar" class="collapse navbar-collapse"> | ||
<ul class="nav navbar-nav"> | ||
<li class="active"><a href="index.php">Home</a></li> | ||
<li><a href="register.php">Register</a></li> | ||
<li><a href="view_users.php">View Users</a></li> | ||
<li><a href="password.php">Change Password</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div id="content"><!-- Start of the page-specific content. --> | ||
</nav> | ||
<div class="container"> | ||
<!-- Script 9.1 - header.html --> |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
<?php # Script 3.4 - index.php | ||
<?php # Script 3.7 - index.php #2 | ||
|
||
// This function outputs theoretical HTML | ||
// for adding ads to a Web page. | ||
function create_ad() { | ||
echo '<div class="alert alert-info" role="alert"><p>This is an annoying ad! This is an annoying ad! This is an annoying ad! This is an annoying ad!</p></div>'; | ||
} // End of the function definition. | ||
|
||
$page_title = 'Welcome to this Site!'; | ||
include ('./includes/header.html'); | ||
include('includes/header.html'); | ||
|
||
// Call the function: | ||
create_ad(); | ||
?> | ||
<h1 id="mainhead">Big Header</h1> | ||
<p>This is where you'll put the main page content. This content will differ for each page.</p> | ||
<p>This is where you'll put the main page content. This content will differ for each page.</p> | ||
<p>This is where you'll put the main page content. This content will differ for each page.</p> | ||
<p>This is where you'll put the main page content. This content will differ for each page.</p> | ||
<h2>Subheader</h2> | ||
<p>This is where you'll put the main page content. This content will differ for each page.</p> | ||
<p>This is where you'll put the main page content. This content will differ for each page.</p> | ||
<p>This is where you'll put the main page content. This content will differ for each page.</p> | ||
<p>This is where you'll put the main page content. This content will differ for each page.</p> | ||
|
||
<div class="page-header"><h1>Content Header</h1></div> | ||
<p>This is where the page-specific content goes. This section, and the corresponding header, will change from one page to the next.</p> | ||
|
||
<p>Volutpat at varius sed sollicitudin et, arcu. Vivamus viverra. Nullam turpis. Vestibulum sed etiam. Lorem ipsum sit amet dolore. Nulla facilisi. Sed tortor. Aenean felis. Quisque eros. Cras lobortis commodo metus. Vestibulum vel purus. In eget odio in sapien adipiscing blandit. Quisque augue tortor, facilisis sit amet, aliquam, suscipit vitae, cursus sed, arcu lorem ipsum dolor sit amet.</p> | ||
|
||
<?php | ||
include ('./includes/footer.html'); | ||
// Call the function again: | ||
create_ad(); | ||
|
||
include('includes/footer.html'); | ||
?> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<?php # Script 9.2 - mysqli_connect.php | ||
|
||
// This file contains the database access information. | ||
// This file also establishes a connection to MySQL, | ||
// This file contains the database access information. | ||
// This file also establishes a connection to MySQL, | ||
// selects the database, and sets the encoding. | ||
|
||
// Set the database access information as constants: | ||
DEFINE ('DB_USER', 'username'); | ||
DEFINE ('DB_PASSWORD', 'password'); | ||
DEFINE ('DB_HOST', 'localhost'); | ||
DEFINE ('DB_NAME', 'sitename'); | ||
DEFINE('DB_USER', 'username'); | ||
DEFINE('DB_PASSWORD', 'password'); | ||
DEFINE('DB_HOST', 'localhost'); | ||
DEFINE('DB_NAME', 'sitename'); | ||
|
||
// Make the connection: | ||
$dbc = @mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) OR die ('Could not connect to MySQL: ' . mysqli_connect_error() ); | ||
$dbc = @mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) OR die('Could not connect to MySQL: ' . mysqli_connect_error() ); | ||
|
||
// Set the encoding... | ||
mysqli_set_charset($dbc, 'utf8'); |
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
Oops, something went wrong.