Public feed #603644

Someone

public text v1 · immutable
Raw Edit
·published 2007-07-04 23:25 UTC
rendered paste body
<?php $pageID = "1"; 

include("Includes/config.php");

?>
<?php print $strDetails; ?>




in the config file its like this

<?php	
	
$strsql = "SELECT id,title,description ";
$strsql .=" FROM pages_t_details ";
$strsql .=" WHERE id='$pageID'";
$conclass =new DataBase();
$rst= $conclass->Execute ($strsql,$strError);
while ($line = mysql_fetch_array($rst, MYSQL_ASSOC)) 
	     {
			$strID=$line['id'];
			$strDetails=$line['description'];
			$strTitle=$line['title'];
		}

?>