Public feed #603656

Someone

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

include("Includes/config.php");

?>
<?php print $a[1]['strDetails']?>
<?php print $a[2]['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)) $a[$line['id']] = array(
			'strDetails' => $line['description']
			'strTitle' => $line['title']
);
?>