Or change the time on your server, or switch the < for an >![]()
Or change the time on your server, or switch the < for an >![]()
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
so how would I write it if I have 2 pictures and wanted them to switch ever SIX hours instead of every 12?
I am guessing the server goes on a 24 hour clock, but I have no idea how to re-write the code to account for 6 hour increments.
aTdHvAaNnKcSe![]()
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
PHP Code:<?php
header("Content-Type: image/png");
$a = date('G');
if($a < 6) $file = "tooDarnedEarlyByFar.png";
else if($a < 12) $file = "early.png";
else if($a < 18) $file = "morning.png";
else $file = "daytime.png";
readfile($file);
?>
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Thanks Twey, you know... I almost did exactly that, and the only thing that kept me from doing it is that I have a couple of players that are currently on this level and I didn't want to screw anything up, lol.
Thanks again!
You're the best.
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
Heh. You should have tested it in a seperate page, seen it worked, and overwritten the main page.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks