I still use this for anything I forget. It's a great tutorial.
http://php-mysql-tutorial.com
It's easy and gets the point across. It doesn't go into great detail, but you can always refer to documentation on http://www.php.net for functions, and you can find other references for more complex MySQL.
The basics are explained really well, though. (And it has some examples of projects you can try, or at least look at.)
At this point, I'd say that going with PHP is definitely the right path. It will be harder than just setting up basic html pages, but it really makes more sense.
If your client must have this quickly and won't wait for you to figure out the PHP, then basic HTML will get it done, but it just won't be nice to work with.
If you want a really basic approach to a PHP method, here's an idea:
1. Create a template page, which wants variables.
Here's an example, and it's basic, but entirely expandable.
PHP Code:
<html>
<head>
<title><?php echo $title; ?></title>
</head>
<body bgcolor="<?php echo $bgcolor; ?>">
<p>
<?php echo $content1; ?>
</p>
<h1><?php echo $header; ?></h1>
Date: <?php echo $date; ?><br>
Type: <?php echo $type; ?>
</body>
</html>
2. Now you can create a page to use that template:
PHP Code:
<?php
$title = 'This is my page!';
$bgcolor = '#00FF00';
$content1 = 'Here\'s a bunch of content.<br>
It\'s spanning a few lines and stuff.';
$header = 'Here\'s a big title on the page';
$date = 'January 1, 2000';
$type = 'Official';
include('template.php'); //NAME [and path] OF YOUR OTHER PAGE!
?>
3. Here is what you end up with when you visit the page:
[note: both pages must be named .php]
Code:
<html>
<head>
<title>This is my page!</title>
</head>
<body bgcolor="#00FF00">
<p>
Here's a bunch of content.<br>
It's spanning a few lines and stuff.
</p>
<h1>Here's a big title on the page</h1>
Date: January 1, 2000<br>
Type: Official
</body>
</html>
This is so easy to setup, it seems like a great solution for you. However, the problem is that this doesn't do any parsing of the text. So you and your client will need to use HTML and also escape any single quotes (see $content1 above).
I hope this gets you started.
Bookmarks