Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » General Discussions » General Discussion » Web Portal
Web Portal [message #152401] Sun, 01 May 2005 20:45 Go to previous message
Beanyhead is currently offline  Beanyhead
Messages: 549
Registered: February 2003
Location: Kentucky, USA
Karma:
Colonel

First you need to access the database

The variables will have to be set, your host, username, password and the database being used.

Then you'd want to create a table and database, let's name these both "temp" for now.

Two columns, page and html

blah.php?page=whatever


$page = $_REQUEST['page'];

$link = mysql_connect($sql_host, $sql_user, $sql_pass);
mysql_select_db(temp, $link);

$result = mysql_query("SELECT * FROM `temp` WHERE page='$page'");
$myrow = mysql_fetch_array($result);

echo $myrow[html];



Note: this is a VERY simple sample of what code would be used.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Are you in to haunted places, historic places? [My new site]
Next Topic: ffs
Goto Forum:
  


Current Time: Thu Sep 19 21:35:53 MST 2024

Total time taken to generate the page: 0.01025 seconds