Web Development with PHP and MySQLDynamic, database-driven small business web sites done right.
|
|
Web Developer ::
phpMyEdit ::
MySQL Cheat Sheet
:: |
|
|
MySQL Schema Example For A Content Management System
The following MySQL™ schema is used to drive some of my web sites. Each page is assigned a section number (snum) and a page number (pnum). The first page in each section is assigned a page number of zero, while other pages in that section are assigned a higher numeric value. Utilizing the section number and page number, links to other pages in the currently selected section can be easily queried. The link column contains text used in the A HREF tag, while the heading column is used for both the A HREF title argument and the page title. The content column holds the web page content (text, HTML, or PHP code). If content contains PHP code, then the corresponding eval_content column is set to 1 (and evaluated using PHP when the page is rendered). Columns are available for various META tags are configured, and pages can be set as hidden if they're not ready to be publicly displayed. Pages can be flagged as deleted without actually removing the record from the database. The mli column facilitates making a page available only if the user is currently logged in. Pages requiring a secure https connection can be flagged using the https column. The nav column facilitates overriding the default navigation display, and is seldom used. The changefreq and priority page are used when generating Google Site Maps. The spider column facilitates changing the default META robots tag to indicate noindex and nofollow arguments. The html_1 and html_2 tags (if non-empty) facilitate a mechanism for displaying additional HTML TABLE's in the page header. Page headings and content are configured for MySQL™ fulltext searching. For PHP driven web sites, always set register_globals OFF. -- PHP Script Example - FULLTEXT Search of MySQL Database Table
|
|
copyright © 2010 - hockinson.com - all rights reserved
- php programmer in denver, colorado
- web developer in denver, colorado
- lightbox cms content management system - colorado web designer - colorado web developer - denver web developer - website hosting - php mysql form - mysql form maker |