TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

just a question

Page: 1 Reply
Sep 28th 2002#71196 Report
Member since: Sep 28th 2002
Posts: 85
[PHP]$quote = array("1", "2");
$arrayCount = count($quote) -1;
srand((double)microtime()*1000000);
$randomNo = rand(0,$arrayCount);
$randquote= $quote[$randomNo];
echo $randquote;
if($randqoute == 1) {
include("splash/splash.html");
}
elseif ($randomqoute == 2) {
include("splash/splash2.html");
}
?>[/PHP]
im trying to make a random interface in the center of my site
( http://micro.rant-on.net ) and well i made this script but its not working anyone know why....since they are interfaces with rollovers and stuff i have to call a html file.....but it wont work anyone know why...thanks....and btw im MiCRo ....but i was banned by pank for a reason i dont know
Reply with Quote Reply
Sep 28th 2002#71199 Report
Member since: Apr 1st 2002
Posts: 1487
typos...fixed 'em for you and it works now..

[PHP]
$quote = array("1", "2");
$arrayCount = count($quote) -1;
srand((double)microtime()*1000000);
$randomNo = rand(0,$arrayCount);
$randquote= $quote[$randomNo];
echo $randquote;
if($randquote == 1) {
include("splash/splash.html");
}
elseif ($randquote == 2) {
include("splash/splash2.html");
}
[/PHP]
Reply with Quote Reply
Sep 29th 2002#71326 Report
Member since: Sep 28th 2002
Posts: 85
um squid there is no diffrence in the script exzcaept you forgot to put and ending ?> sign....?????
Reply with Quote Reply
Sep 29th 2002#71328 Report
Member since: Apr 1st 2002
Posts: 1487
umm..maybe if you read the $randquote variables you put. you put 3 in and al 3 are spelled differently...thus, typos.
Reply with Quote Reply
Sep 29th 2002#71330 Report
Member since: Mar 16th 2001
Posts: 2421
Never doubt the Squid!



;)
Reply with Quote Reply
Sep 29th 2002#71331 Report
Member since: Apr 1st 2002
Posts: 1487
hehe :D
Reply with Quote Reply
Sep 30th 2002#71399 Report
Member since: Sep 28th 2002
Posts: 85
pank why did you ban my other account MiCRo
Reply with Quote Reply
Sep 30th 2002#71405 Report
Member since: Mar 16th 2001
Posts: 2421
Neither accounts are banned.

Just checked and you are still sitting in the waiting for email autho limbo. You never clicked the activation code that was emailed to you...
Reply with Quote Reply
Sep 30th 2002#71545 Report
Member since: Sep 28th 2002
Posts: 85
o ok thank
Reply with Quote Reply
Sep 30th 2002#71549 Report
Member since: Mar 24th 2002
Posts: 3114
ROFL! :D
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum