Quote:
|
Originally Posted by SN3
Quote:
|
Originally Posted by littleFella
<?php
include("somefile.html");
?>
|
What's the point? Then they would have to learn programming languages. I found something that I can work from - I should have it done in a few days. It's very simple and easy to do.
|
Not exactly. My customers have no clue about programming, but they can definitelly use a simple visual html editor. This is how I do it for them:
[code:1:712c0ec33d]<?include("../../templates/conn.php");?>
//some other html or php code here
<?php
$stmt = "SELECT * from P_ABOUTUS, PAGE_HEADER";
$sth = ibase_query($dbh, $stmt);
$row = ibase_fetch_object($sth);
ECHO " <tr>
<td valign="top" width="100%" bgcolor="$row->BACK_COLOR" background="$row->BACK_PICTURE_PATH">
<div align="center">
<font size="$row->FONT_SIZE"color="#$row->FONT_COLOR" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
<b>$row->HEADER_TEXT</b>
</font>
</div>
</td>
<tr>
<td>
$row->NARRATIVE //this is customer's html text
</td>
</tr>";
?>[/code:1:712c0ec33d]
Some other pages, such as pages containing lists of items, or some of tabular contents are added/modified by the user by inserting/modifying a record in the database. Seems to be working just right.