//Connect To Database
$hostname="h41mysql55.secureserver.net";
$username="gorman";
$password="Commercial7";
$dbname="gorman";
$usertableE="emails";
$usertableA="adminarea";
$usertableD="donateinfo";
$usertableP = "pages";
$usertablePN = "pressnews";
$usertableTI = "trackips";
$con = mysql_connect($hostname,$username,$password);
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db($dbname);
mysql_query("INSERT INTO trackips(VisIP, VisRef, VisUrl, VisDate, VisAgent, pagehit) VALUES(\"".$HTTP_SERVER_VARS['REMOTE_ADDR']."\", \"".$HTTP_SERVER_VARS['HTTP_REFERER']."\", \"".$HTTP_SERVER_VARS['REQUEST_URI']."\", NOW(), \"".$HTTP_SERVER_VARS['HTTP_USER_AGENT']."\",'home')");
$result = mysql_query("SELECT * FROM $usertableP WHERE category = 'about' ");
if (!$result) { echo("ERROR " . mysql_error() . "\n$SQL\n"); }
$row = mysql_fetch_array($result);
function unhtmlentities($string)
{
// replace numeric entities
$string = preg_replace('~([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $string);
$string = preg_replace('~([0-9]+);~e', 'chr("\\1")', $string);
// replace literal entities
$trans_tbl = get_html_translation_table(HTML_ENTITIES);
$trans_tbl = array_flip($trans_tbl);
return strtr($string, $trans_tbl);
}
$homebody = $row["text"];
$homebody = html_entity_decode($homebody);
?>
 |
Robert Gorman
for UNITED STATES CONGRESS | 11th DISTRICT, ILLINOIS |
 |
DONATE
|

 |  |
 | Press Release & News Stories |
$result = mysql_query("SELECT * FROM $usertablePN order by id desc ");
if (!$result) { echo("ERROR " . mysql_error() . "\n$SQL\n"); }
while ($row = mysql_fetch_array($result)) {
$nid = $row['id'];
$ptitle = $row['title'];
?>
 | echo $ptitle; ?> |
} // end while that prints press release
?>

|
|
echo $homebody; ?>
|
|
|
|
Privacy Policy | Contacts | Site Map | a Gruseldog Design |