please elaborate... that's simple enough but what kind of site content do you want to change automatically etc?
connecting and displaying database stored content:
- Code: Select all
mysql_connect("localhost", "user" , "pass");
$query = mysql_query("SELECT Data FROM SiteContent WHERE Page = 'index' LIMIT 1");
$row = mysql_fetch_array($query);
$info = stripslashes( nl2br( $row['Data'] ) );
simply connecting to server/database, retrieving row where column "Page" has value "index" and getting the Data column's contents (the index page content).
next taking out escape slashes that are added when posted, and automatically dropping a line where necessary with nl2br. then lastly outputting the content and closing the connection.
hope thats what you wanted