This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* general tag styles */ | |
html { | |
/* background: #ccc url('../images/960_grid_12_col.png') top center no-repeat; */ | |
} | |
body { | |
font-family:verdana,helvetica,sans-serif; | |
width:960px; | |
margin:auto; | |
color:#fff; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta content="Jan Ingemansen" name="author"> | |
<link href="css/reset_html5.css" rel="stylesheet" type="text/css"> | |
<link href="css/default.css" rel="stylesheet" type="text/css"> | |
<title> | |
Boxes | |
</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.errorMessage { | |
color: red; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MakeItLink { | |
protected function _link_www( $matches ) { | |
$url = $matches[2]; | |
$url = MakeItLink::cleanURL( $url ); | |
if( empty( $url ) ) { | |
return $matches[0]; | |
} | |
return "{$matches[1]}<a href='{$url}'>{$url}</a>"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$myFile = 'testFile.txt'; | |
$fh = fopen($myFile, 'w') or die("can't open file"); | |
$stringData = 'project: ' . $project . "\n"; | |
$stringData .= 'executed: ' . date('l jS \of F Y h:i:s A') . "\n"; | |
fwrite($fh, $stringData); | |
fclose($fh); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function format_datetime($examine_query) | |
{ | |
$split_query = explode("FROM", $examine_query); | |
$result = mysql_query($examine_query); | |
$numfields = mysql_num_fields($result); | |
for ($i = 0; $i < $numfields; $i++) | |
{ | |
$field_info = mysql_field_type($result, $i); | |
$field_name = mysql_field_name($result, $i); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function make_table($sql) | |
{ | |
$res = mysql_query("$sql"); | |
if (!$res) | |
{ | |
die("Query to show fields from table failed"); | |
} | |
$rows_num = mysql_num_rows($res); |