|
Thanks for the reply,
I really appreciate it.
Yes the question is "How to put it in my CMS ?"
The main page uses a database and all other sub pages are populated from a php file called content. The biggest part of the content in pages is taken from database. My problem is that i dont know how to put a page titles, because everything is take from the database and content php page. May be i will need a string and additional table in database.
Here is an example from content.php file
<?php
include "mysqlconnect.php";
$lid=$_GET['lid'];
if(isset($lid))
{
$result=mysql_query("select * from mainlinks where lid=$lid");
$row=mysql_fetch_array($result);
$title=$row['linkname'];
$contents=$row['contents'];
}
if($title=="HOME")
{
header("location: index.php");
}
$result1=mysql_query("select * from mainlinks order by orderno");
?>
<HTML>
<HEAD>
<TITLE>finesh finish:: <?php echo $title;?></TITLE>
and this is an example of MySQL database:
INSERT INTO `contents` VALUES ('HOME', NULL, '<P dir=ltr><SPAN style="COLOR: #ffffff">Traditional French Polishing & Decorating Contractors</SPAN></P>');
INSERT INTO `contents` VALUES ('PAINTING AND DECORATING', NULL, NULL);
INSERT INTO `contents` VALUES ('FRENCH POLISHING', NULL, NULL);
INSERT INTO `contents` VALUES ('COMMERCIAL WORK', NULL, NULL);
INSERT INTO `contents` VALUES ('PORTFOLIO', NULL, '<DIV align=center><SPAN style="COLOR: #ffa500; FONT-FAMILY: Arial Black">This Page is Under Construction</SPAN></DIV>');
INSERT INTO `contents` VALUES ('FAQs', NULL, NULL);
INSERT INTO `contents` VALUES ('TESTIMONIALS', NULL, NULL);
Where and how to make this if it is possible ?
|