home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Internet Web Designer 89
/
PIWD89.iso
/
pc
/
CONTENTS
/
DEVELOPER
/
TUTORIAL_FILES
/
Pages90-91
/
admin
/
index.php
< prev
Wrap
PHP Script
|
2003-11-24
|
1KB
|
41 lines
<?php
//connect to the database
$conn = mysql_connect("localhost","root","pwd");
//choose the cms db
mysql_select_db("cms", $conn);
//query the database for a list of categories
$result = mysql_query("SELECT catID, catName, catDesc FROM tblCat", $conn);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>CMS Homepage</title>
<link rel="stylesheet" type="text/css" href="../global.css" />
</head>
<body>
<div id="banner">
<p> </p>
</div>
<div id="navigation">
<ul class="main">
<li><a href="add.php">Add Content</a></li>
<li><a href="edit.php">Edit Content</a></li>
</ul>
</div>
<div id="content">
<h1>Administration</h1>
<p>Administer your content from here.</p>
<p><a href="add.php">Add Content</a><br />
Add new content pages to the database.</p>
<p><a href="edit.php">Edit Content</a><br />
Edit pages that already exist in the database.</p>
</div>
</body>
</html>