| Web Portal [message #152401] | 
			Sun, 01 May 2005 20:45   | 
		 
		
			
				
				
				
					
						  
						Beanyhead
						 Messages: 549 Registered: February 2003  Location: Kentucky, USA
						
	Karma: 
 
					 | 
					Colonel  | 
					![beanyhead [at] gmail [dot] com](/theme/Renegade_Forums/images/google.png)  
  | 
		 
		 
	 | 
 
	
		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.
		
		
		
 |  
	| 
		
	 | 
 
 
 |