include '/var/www/vhosts/peckhams.org/httpdocs/ta/tech/config.php'; ?> if (!$_GET['ident']) $_GET['ident'] = 'default'; include $basepath.'tech/sql-connect.php'; // generate and execute query $query = "SELECT * FROM generalcontent WHERE section = 'regions' AND identifier = '".$_GET['ident']."'"; $result = mysql_query($query) or die ("Error in query: $query. " . mysql_error()); // if a result is returned if (mysql_num_rows($result) > 0) { // turn it into an object $row = mysql_fetch_object($result); ?>
require_once ($basepath.'tech/header.php'); ?>
|