Thread: Fatal Error...
View Single Post
  #13  
Old 11-12-2011, 09:29 PM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 126,157
Tequila is on a distinguished road
Default

Quote:
Originally Posted by Hall of Famer View Post
For some reason the script wont run while I was betatesting it(not even giving errors, just all blank). I'd rewrite your codes in this way:

PHP Code:
if ($random_1=='1' || $random_2=='1' || $random_3=='1' || $random_4=='1'$v1='1';  
else 
$v1='0'
The brackets in if statement can be tricky. I am assuming you are using a shortcut since you only have one line of codes following if and else, but the best way to handle this is to get rid of the bracket. Once you have brackets in your if statement, you will have to write separate lines like this:

PHP Code:

if ($random_1=='1' || $random_2=='1' || $random_3=='1' || $random_4=='1'){ 
    
$v1='1'
    } 
    else {
    
$v1='0'
    } 
Hopefully this solves your problem. I cannot test your script on my site there is no guarantee that I make no mistakes. Also it seems that you are trying to utilize a part of PHP and javascript codes?
I'll try that tomorrow afternoon (once I'm out of work). I hate closing and opening the next morning. :/

In other news, I should be able to give my won't be here notice for Turkey Day (volunteered for 8 hours) and That Evil Shopping Day (volunteered for 12 hours) after shortly.
__________________
Artist. Designer. Gamer. Mother.
[portfolio] [tarot] [Rune Hollow] [freebies]
Reply With Quote