BCS website placeholder and testbed (circa Nov 2003)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 

30 lines
927 B

<?php // Generate the banner page
// import database configuration and functions
require("db.php3");
// connect to the database
$connection = connect($host, $dbname);
if($connection) {
// import minipage functions
require("html.php3");
// setup query value
$query = "select * from page where content = \"banner\"";
$result = query($connection, $query);
if($result) {
$page = fetch_object($result,0);
$pid = start($page);
// query for page items
$query = "select * from item where pid=\"$pid\" order by ord";
$result = query($connection, $query);
if($result) {
$item = fetch_object($result,0);
$image = $item->dat;
$size = getimagesize($image);
print("<div class=$item->class>\n<a href=\"$item->url\">\n");
print("<img src=\"$image\" $size[3]\n");
print(" alt=\"$item->alt\" ");
print("border=0></a>\n</div>\n</body>\n</html>");
}
}
}
?>