WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Submit Site
Forex Trading Online forex trading platform

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : PHP Class for web page production. Used with BaseCalendar.inc and template.php. Built-in MySQL interface.
Categories : PHP Classes, PHP, MySQL, Databases Click here to Update Your Picture
Bill Sanders
Date : Apr 17th 2002
Grade : 2 of 5 (graded 5 times)
Viewed : 5502
File : 3304.zip
Images : No Images for this code example.
Search : More code by Bill Sanders
Action : Grade This Code Example
Tools : My Examples List

  Submit your own code examples 
 

<?/*
Page.inc is the class; template.php is the template for that class. You build as
many web pages as you like with template.php; each one calls page.inc.
BaseCalendar.inc is called from template.php as well. That file is not attached
here, but can be downloaded from this site.

An example of how to use them: edit template.php to produce a web page, and save it
with another name. Do it several times and you have your entire site. Page.inc can
be edited to alter the style and scripting for all pages at once. If you don't want
the calendars, just delete the call for BaseCalendar.inc found in template.php.
I've included lots of comments in both files to help understand their use.

As a simple test:

**Load page.inc, basecalendar.inc and template.php in the same directory.
**Open template.php.
**Near the end of the file is a <h2> header which reads "Main Page Header Goes
Here". Replace these words between the <h2></h2> tags with whatever you like.
**Below that is a <h3> header which reads "Secondary Header if Desired". Likewise,
replace it.
**Below that is an HTML comment which reads: "<!-- the main HTML body of the page
goes here -->". Replace the entire comment with your messages to the world.
**Save the file in the same directory with a new name (be sure to use the correct
extension: *.php).
**Open the new file in your browser to see the finished product (for additional
understanding, View Source the page opened in your browser to see how it all comes
together).
**Repeat steps 2-7 to produce additional pages.


*/?>



usercounter class
Categories : PHP, PHP Classes, Databases, MySQL, Environment Variables
MySQL Handler
Categories : PHP, Databases, MySQL, Classes and Objects, PHP Classes
PostGreSQL and MySQL 2 in 1 db Manager
Categories : PHP, PHP Classes, Databases, PostgreSQL, MySQL
MySQL Class to ease Database connectivity
Categories : MySQL, PHP Classes, Databases, PHP
Simple Mini Poll class library (SimPoll)
Categories : PHP, PHP Classes, Databases, MySQL, Complete Programs
Online Automatic Class Generator for MySQL Tables
Categories : PHP, PHP Classes, Classes and Objects, Databases, MySQL
Specify your connection settings and create a link to a MySQL database.
Categories : PHP, PHP Classes, Databases, MySQL, Beginner Guides
Simple database class
Categories : PHP, PHP Classes, MySQL, Databases
Simple usersOnline class - keep track of how many users are online on your site
Categories : PHP, PHP Classes, Databases, MySQL
Setting up InnoDB on MySQL and using Transactions Begin, Commit, Rollback in PHP.
Categories : PHP Classes, Databases, PHP, MySQL, InnoDB
Ajax PHP Tree (Left and Right) with MySQL
Categories : PHP, Databases, MySQL, AJAX, PHP Classes
YellowPages Content Grabber (PHP5 +)
Categories : PHP, PHP Classes, Regexps, Databases, MySQL
Convert SQL from oracle,mysql,mssql,sqlite and odbc to SQL compatible
Categories : PHP, PHP Classes, Databases, MySQL, MS SQL Server
MySQL Connection/Query Class
Categories : Databases, MySQL, PHP, PHP Classes
Create and restore backup of MySQL databases
Categories : MySQL, Databases, PHP, PHP Classes, Complete Programs