JavaScript
Defines dynamic changes that can be rendered by the client browser after the page has downloaded.
HyperText Markup Language
The language of all web pages, specifying the content which each client browser may show differently.
PHP script
Server-side scripting language used to produce dynamically web pages which are then displayed by the browser.
MySQL database
A database that can be used as an alternate method of storing web page content.
<!DOCTYPE html>
<html>
<head>
<title>American Institute of Architects - Colorado</title>
<meta http-equiv="keywords" content="aia,colorado,architects,architecture">
<meta http-equiv="description" content="AIA - Colorado Chapter">
<script language="JavaScript" type="text/javascript">
// Image swapping
function on(name,file,id) {
if (document.images) obj=eval(document.images[name]);
if (obj) obj.src=onImage[file].src;
if (document.layers) { div = document.layers[id]; }
else if (document.all) { div = document.all(id).style; }
div.visibility = visible;
}
</script>
<style type="text/css">
body {border:0; padding:0; margin:0; font-family:arial; font-size:11px;
background-color: white; background-image: url(images/bar_home.jpg);}
a {text-decoration:none; color:#3c3c3c;}
a:hover {text-decoration:underline; cursor:pointer;}
img {border:0;}
img,a,br {margin: 0px; margin-top: 0px; margin-bottom: 0px; margin-left: 0px;}
.aiac {position:absolute; top:125px; left:125px; visibility: hidden}
</style>
</head>
<body>
<div id="pos1" class="aiac">
What is the AIA, history, programs & services, products, contact us
</div>
<table align="center" cellpadding="0" cellspacing="0" width="780">
<tr><td id="bgimg" valign="top" height="380" nowrap>
<img align="right" valign="top" src="images/eagle.gif" alt="" width="42" height="72" />
<a href="aiac/index.html" target="_top" onMouseOver="on(‘roll1’,0,’pos1’); window.status=’What is AIAC’;return true;" onMouseOut="off(‘roll1’,0,’pos1’);">
<img name="roll1" src="images/aiac_off.gif" alt="" width="151" height="35" /></a>
<br /><img src="images/ctr_home.jpg" alt="AIA Colorado" border="0" width="375" height="17">
</td></tr></table>
</body>
</html>
<?php
function getDataSet($sql) {
if (isset($sql)) {
$link = mysql_connect("localhost","root",""); // wamp
$db_selected = mysql_select_db("philtreks", $link);
$result = mysql_query($sql, $link);
mysql_close($link);
}
return $result;
}
function getDataArray($sql, $dim="") {
$recordData = array();
$result = getDataSet($sql);
if ( mysql_num_rows($result) > 0 ) {
while ( $oneRow = mysql_fetch_assoc($result) ) {
foreach ( $oneRow as $key => $value ) {
if ($key <> "ID") { // skip ID field
if ($dim == "*") {
$recordData[$oneRow[‘name_txt’]][$key] = $value;
$titleStr = mysql_field_name($result, 1); // the name of the second field in the table
} else if ($dim <> "") {
if ($key == $dim) { $recordData[$oneRow[‘name_txt’]] = $value; }
} else {
$recordData[$key] = $value;
}
}
}
}
}
return $recordData;
}
?>
CADesign
Website &
Technology
Design
Support
Training
You know your business—why should you have to know I.T. too?