View Single Post
  #4  
Old 03-10-2012, 12:30 PM
!Alive !Alive is offline
Member
 
Join Date: Feb 2012
Posts: 39
Gender: Male
Credits: 1,071
!Alive is on a distinguished road
Default

PHP Code:
$number=rand(1,2);
    if (
$number == 2){
    
runquery("UPDATE ".$GLOBALS['prefix']."users SET explore='1' WHERE username".$GLOBALS['loggedinname']);
    
    
$query "SELECT * FROM ".$GLOBALS['prefix']."users WHERE username".$GLOBALS['loggedinname'];
    
$result mysql_query($query);
    
$explore=@mysql_result($result,0,"explore");
    echo 
"$explore";

    return 
$explore;
    if (
$explore == 1){
    
header'Location: browseprize.php' ) ;
        }
        } 
That's my code I'm running. I don't think I have any sytax errors, but I'm still new to this so I could be wrong.
Reply With Quote