You are here: Re: Dynamic pages vs search engines « PHP Programming Language « IT news, forums, messages
Re: Dynamic pages vs search engines

Posted by rlee0001 on 04/04/06 22:58

Sandy,

Why are you passing the page URI as a parameter? The capability you
request has nothing to do with the URL. For example, you could use...

http://www.example.com/pages/manual/chapter1/engine_repair/carburetors.php

And have an interactive comments section at the bottom of that page.
Also, you can use numbers as in your first example that are not
autonumbered by the database. Using static numbers gives you the
requirement that reloading the database doesn't re-assign record
numbers.

Is all your content sitting in a database now or is it static? Create a
function:

function docomments ($page) {
// OUTPUT NEW COMMENT FORM
// QUERY & SHOW COMMENTS
return null;
}

Where $page is the request URI. In the database, store each comment
with the "parent_page" varchar. This field just coresponds to the
request URI. Pretty simple stuff. The docomments function can be loaded
via a global include file for easy maintenance. A seperate page can
handle processing new incoming comments for the whole site. Just pass
in the $page value as a hidden form field to add the comment to the
database. Redirect users back to that URI.

-Robert

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация