//include ("db_connect.php"); //mysql_query ("DELETE from consolidated_news_log WHERE header = ' '", $db); //mysql_close ($db); ?> //Get USER INFO $ip = $_SERVER['REMOTE_ADDR']; $hostaddress = gethostbyaddr($ip); $browser = $_SERVER['HTTP_USER_AGENT']; $referred = $_SERVER['HTTP_REFERER']; // a quirky spelling mistake that stuck in php ?>
include ("db_connect.php"); // display individual record if ($id) { $result = mysql_query("SELECT * FROM consolidated_news WHERE id=$id",$db); $myrow = mysql_fetch_array($result); // this is to accomodate the fact the IE is lame. Even if you have a font class if there is a // in there that is not specified it goes back to the default font class. Modification July 10, 2007 $main = $myrow['main']; $main = preg_replace("/ /smi"," ",$main); // printf(" ");
printf("\n", $myrow["logo"]);
printf(" "); printf("%s\n", $myrow["header"]); printf(""); printf(""); printf("%s\n", $main); printf(""); printf(" ");
}
?>
|