May 2003
Intermediate to advanced
592 pages
14h 28m
English
Before I get into the heart of the Web application (the content management itself), I need to create two more pages. One will be index.php and will act as the home page for the site. The second will be mysql_connect.php, a script that connects to MySQL and selects the database to be used (see the Database Scheme sidebar in the next section for more information about the database).
1. | Create a new PHP script in your text editor (Script 11.3).
<?php # Script 11.3 - index.php |
2. | Set the page title and include the HTML header.
$page_title = 'Content Management Site';
include_once ('includes/header.html');
?>
|
3. | Create the content.
<p>Spam spam spam spam spam spam spam spam spam spam spam spam ... |
Read now
Unlock full access