srand((double)microtime()*1000000);
$quotes = $svpath . '/rand/quotes_main.txt';
$quotes = file($quotes);
$select = rand(0, count($quotes)-1);
ECHO "$quotes[$select]";
?>
|
.jpg" WIDTH=220
HEIGHT=3 ALT="( ECHO "$moodcolor"; ?> )" BORDER=0>
$filemoddate = date("m/d/y", filemtime($svpath . '/mood.php')); PRINT("$filemoddate"); ?>
about mood |
.ram">mood music
|
.jpg" WIDTH=20
HEIGHT=20 BORDER=0 ALT="( ECHO "$moodcolor"; ?> )"
ALIGN="middle">
|
.jpg" WIDTH=220
HEIGHT=3 ALT="( ECHO "$moodcolor"; ?> )" BORDER=0>
no, ben, I don't check daily...
(expanded news)
// user and database login
$userhost = "localhost";
$username = "benturne_ben";
$userpass = "W5sfSt2a";
$dbname = "benturne_ben";
$usertable = "site_news";
$dbh=mysql_connect ($userhost, $username, $userpass) or die ('Unable to connect to the database.');
@mysql_select_db($dbname) or die( "Unable to select database.");
// queries the database for all the entries
$result = MYSQL_QUERY("SELECT * FROM $usertable ORDER BY news_date DESC");
$number = MYSQL_NUMROWS($result);
// prints out only the most recent 4 entries
$i = 0;
WHILE ($i < 4) {
if ($i < $number) {
$newsdate_timestamp = MYSQL_RESULT($result,$i,"news_date");
$newsdate = date("m\M/d\D/y\Y",$newsdate_timestamp);
$newsentry = MYSQL_RESULT($result,$i,"news_entry");
PRINT "
$newsdate: $newsentry
\n\n";
$i++;
}
else {
break;
}
}
// closes the database
MYSQL_CLOSE();
?>
where do I go?
Well, look, if you really want to get a feel for how this site is
set up and how it came to be, first read my
history of benturner.com, then look at
the sitemap. Sitemaps are vital for
knowing just how much of the site you've looked at.
Are you lost, confused, too lazy to explore? First of all, I'd start
off by going to the autobio to learn more about
me. Then I'd go to the Soapbox to read what I've
been writing regularly over the years. Most people read up on
Robin Hood, but then stay to read about me.
If you want to get off the beaten track a bit, why not take the
philosophies survey? Look at what
I've created, or what others
have created. Don't forget to brush up on your
quotes.
what you should know...
First of all, this site is very old, dating back to late 1995. Most of the
design is ancient and the same is true for the content. I keep it because
I like the way everything flows together, even if it's not very useful to
anyone. I don't really design anymore, and luckily I was able to create
a flexible, easy-to-maintain site before I lost interest.
This site is a celebration of the author, and not so much entertainment
for its readers. If you're an HTML pedant, bandwidth luddite, or
potential employer, just keep in mind that if it were not my personal
playground, it would download faster. Bug reports still welcome.
I know this site is difficult to get immersed in, and many won't take
the time to do it, but I feel that once you get past my difficult and
stand-offish exterior, you'll enjoy the interior.
|