I need an Xbox Live Code Generator Script

I just pointed the footer links to google for now

HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>
    <!--
    Created by Artisteer v2.1.0.16090
    Base template (without user's data) checked by http://validator.w3.org : "This page is valid XHTML 1.0 Transitional"
    -->
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
      <meta name="keywords" content="xbox,360,code,generator,free,xboxlive, xbox live,xbox360,gold, points ,ms points" />
<meta name="description" content="Xbox360 live and points code generator 100% FREE , no downloads and no user name or password required generate you xbox live code today" />
<title>Xbox Live | Xbox Points | Code Generator</title>

    <script type="text/javascript" src="script.js"></script>

    <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
    <!--[if IE 6]><link rel="stylesheet" href="style.ie6.css" type="text/css" media="screen" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" href="style.ie7.css" type="text/css" media="screen" /><![endif]-->
    </head>
<body>


<div class="Main">
        <div class="Sheet">

            <div class="Sheet-tl"></div>

            <div class="Sheet-tr"></div>
            <div class="Sheet-bl"></div>
            <div class="Sheet-br"></div>
            <div class="Sheet-tc"></div>
            <div class="Sheet-bc"></div>
            <div class="Sheet-cl"></div>
            <div class="Sheet-cr"></div>
            <div class="Sheet-cc"></div>

            <div class="Sheet-body">
                <div class="Header">
                    <div class="Header-png"></div>
                    <div class="Header-jpeg"></div>
                    <div class="logo">
                        <h1 id="name-text" class="logo-name"><a href="#">Xbox Live And Points</a></h1>
                        <div id="slogan-text" class="logo-text">Code Generator</div>
                    </div>

                </div>
                <div class="nav">
                	<div class="l"></div>
                	<div class="r"></div>
                	<ul class="artmenu">
                		<li><a href="http://snezy.com" class=" active"><span class="l"></span><span class="r"></span><span class="t">Home</span></a></li>
                		<li><a href="http://snezy.com/xbox-live-points-generator.php"><span class="l"></span><span class="r"></span><span class="t">Xbox Points</span></a>

                		
                		</li>

                		<li><a href="http://snezy.com/xbox-live-code-generator.php"><span class="l"></span><span class="r"></span><span class="t">XBox Live</span></a></li>
                	</ul>
                </div>
                <div class="contentLayout">
                    <div class="content">
                        <div class="Post">
                            <div class="Post-tl"></div>

                            <div class="Post-tr"></div>

                            <div class="Post-bl"></div>
                            <div class="Post-br"></div>
                            <div class="Post-tc"></div>
                            <div class="Post-bc"></div>
                            <div class="Post-cl"></div>
                            <div class="Post-cr"></div>
                            <div class="Post-cc"></div>

                            <div class="Post-body">
                        <div class="Post-inner">

                          
                            <div class="PostContent">
<?php
							function assign_rand_value($num) {

    // accepts 1 - 36
    switch($num) {
        case "1"  : $rand_value = "a"; break;
        case "2"  : $rand_value = "b"; break;
        case "3"  : $rand_value = "c"; break;
        case "4"  : $rand_value = "d"; break;
        case "5"  : $rand_value = "e"; break;
        case "6"  : $rand_value = "f"; break;
        case "7"  : $rand_value = "g"; break;
        case "8"  : $rand_value = "h"; break;
        case "9"  : $rand_value = "i"; break;
        case "10" : $rand_value = "j"; break;
        case "11" : $rand_value = "k"; break;
        case "12" : $rand_value = "l"; break;
        case "13" : $rand_value = "m"; break;
        case "14" : $rand_value = "n"; break;
        case "15" : $rand_value = "o"; break;
        case "16" : $rand_value = "p"; break;
        case "17" : $rand_value = "q"; break;
        case "18" : $rand_value = "r"; break;
        case "19" : $rand_value = "s"; break;
        case "20" : $rand_value = "t"; break;
        case "21" : $rand_value = "u"; break;
        case "22" : $rand_value = "v"; break;
        case "23" : $rand_value = "w"; break;
        case "24" : $rand_value = "x"; break;
        case "25" : $rand_value = "y"; break;
        case "26" : $rand_value = "z"; break;
        case "27" : $rand_value = "0"; break;
        case "28" : $rand_value = "1"; break;
        case "29" : $rand_value = "2"; break;
        case "30" : $rand_value = "3"; break;
        case "31" : $rand_value = "4"; break;
        case "32" : $rand_value = "5"; break;
        case "33" : $rand_value = "6"; break;
        case "34" : $rand_value = "7"; break;
        case "35" : $rand_value = "8"; break;
        case "36" : $rand_value = "9"; break;
    }
    return $rand_value;
}

function get_rand_alphanumeric($length) {
    if ($length>0) {
        $rand_id="";
        for ($i=1; $i<=$length; $i++) {
            mt_srand((double)microtime() * 1000000);
            $num = mt_rand(1,36);
            $rand_id .= assign_rand_value($num);
        }
    }
    return $rand_id;
}

function get_rand_numbers($length) {
    if ($length>0) {
        $rand_id="";
        for($i=1; $i<=$length; $i++) {
            mt_srand((double)microtime() * 1000000);
            $num = mt_rand(27,36);
            $rand_id .= assign_rand_value($num);
        }
    }
    return $rand_id;
}

function get_rand_letters($length) {
    if ($length>0) {
        $rand_id="";
        for($i=1; $i<=$length; $i++) {
            mt_srand((double)microtime() * 1000000);
            $num = mt_rand(1,26);
            $rand_id .= assign_rand_value($num);
        }
    }
    return $rand_id;
}  
                                
                                    
                                   
                                <center>
<?php
echo strtoupper(get_rand_alphanumeric(25));
?>
</center>

                                    <blockquote>

                                        <p>
                                            "WoW! Thanks for the codes they worked like a charm!"
                                            <br />
                                         
                                        </p>

                                    </blockquote>
                                <p>
                                
                                     <blockquote>
                                        <p>

                                            "I used mine to buy new maps =) "
                                            <br />
                                         
                                        </p>
                                    </blockquote>

                                <p>
                                
                                
                                     <blockquote>
                                        <p>
                                            "Well the first couple of codes didnt work for me, but after the third time I was in! Thanks a bunch  "

                                            <br />
                                         
                                        </p>
                                    </blockquote>
                                <p>

                                
                                
                                     <blockquote>
                                        <p>
                                            "I searched everywhere and I finally found a site that actually works! Thank God I just about gave up  "
                                            <br />

                                         
                                        </p>
                                    </blockquote>
                                <p>
                                
                                
                                
                                     <blockquote>

                                        <p>
                                            "Fifth code worked wonders for me, cheers!  "
                                            <br />
                                         
                                        </p>

                                    </blockquote>
                                <p>
                                
                                
                                
                                
                                                                                                                                                                
                            </div>
                            <div class="cleared"></div>

                        </div>
                        
                            </div>
                        </div>
                    </div>

                </div>
                <div class="cleared"></div><div class="Footer">
                    <div class="Footer-inner">
                        <div class="Footer-text">
                        <p><a href="http://google.com">Xbox Live Codes</a> | <a href="http://www.google.com/disclamier.html">Disclamier</a> | <a href="http://www.snezy.com/privacy.html">Privacy</a> | <a href="http://www.google.com">Xbox Code Generator</a>

                              <br />
                                Copyright ©  Snezy. All Rights Reserved.</p>
                        </div>
                    </div>
                    <div class="Footer-background"></div>
                </div>
            </div>

        </div>
        <div class="cleared"></div>
        <p class="page-footer"><a href="http://google.com">Xbox Gold Code Generator</a></p><br>
        
    </div>
    
    
    
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
                                                                                                                    
   <script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-750777-12");
pageTracker._trackPageview();
} catch(err) {}</script> 


</body>
</html>
 
Apparantly I didnt have closings on the php tags.. But I fixed it and Im still getting the same error
HTML:
 <!--
    Created by Artisteer v2.1.0.16090
    Base template (without user's data) checked by http://validator.w3.org : "This page is valid XHTML 1.0 Transitional"
    -->
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
      <meta name="keywords" content="xbox,360,code,generator,free,xboxlive, xbox live,xbox360,gold, points ,ms points" />
<meta name="description" content="Xbox360 live and points code generator 100% FREE , no downloads and no user name or password required generate you xbox live code today" />
<title>Xbox Live | Xbox Points | Code Generator</title>

    <script type="text/javascript" src="script.js"></script>

    <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
    <!--[if IE 6]><link rel="stylesheet" href="style.ie6.css" type="text/css" media="screen" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" href="style.ie7.css" type="text/css" media="screen" /><![endif]-->
    </head>
<body>


<div class="Main">
        <div class="Sheet">

            <div class="Sheet-tl"></div>
            <div class="Sheet-tr"></div>
            <div class="Sheet-bl"></div>
            <div class="Sheet-br"></div>
            <div class="Sheet-tc"></div>
            <div class="Sheet-bc"></div>
            <div class="Sheet-cl"></div>
            <div class="Sheet-cr"></div>
            <div class="Sheet-cc"></div>

            <div class="Sheet-body">
                <div class="Header">
                    <div class="Header-png"></div>
                    <div class="Header-jpeg"></div>
                    <div class="logo">
                        <h1 id="name-text" class="logo-name"><a href="#">Xbox Live And Points</a></h1>
                        <div id="slogan-text" class="logo-text">Code Generator</div>
                    </div>

                </div>
                <div class="nav">
                	<div class="l"></div>
                	<div class="r"></div>
                	<ul class="artmenu">
                		<li><a href="http://google.com" class=" active"><span class="l"></span><span class="r"></span><span class="t">Home</span></a></li>
                		<li><a href="http://google.com"><span class="l"></span><span class="r"></span><span class="t">Xbox Points</span></a>
                		
                		</li>

                		<li><a href="http://google.com"><span class="l"></span><span class="r"></span><span class="t">XBox Live</span></a></li>
                	</ul>
                </div>
                <div class="contentLayout">
                    <div class="content">
                        <div class="Post">
                            <div class="Post-tl"></div>
                            <div class="Post-tr"></div>

                            <div class="Post-bl"></div>
                            <div class="Post-br"></div>
                            <div class="Post-tc"></div>
                            <div class="Post-bc"></div>
                            <div class="Post-cl"></div>
                            <div class="Post-cr"></div>
                            <div class="Post-cc"></div>
                            <div class="Post-body">
                        <div class="Post-inner">

                          
                            <div class="PostContent">
<?php
							function assign_rand_value($num) {

    // accepts 1 - 36
    switch($num) {
        case "1"  : $rand_value = "a"; break;
        case "2"  : $rand_value = "b"; break;
        case "3"  : $rand_value = "c"; break;
        case "4"  : $rand_value = "d"; break;
        case "5"  : $rand_value = "e"; break;
        case "6"  : $rand_value = "f"; break;
        case "7"  : $rand_value = "g"; break;
        case "8"  : $rand_value = "h"; break;
        case "9"  : $rand_value = "i"; break;
        case "10" : $rand_value = "j"; break;
        case "11" : $rand_value = "k"; break;
        case "12" : $rand_value = "l"; break;
        case "13" : $rand_value = "m"; break;
        case "14" : $rand_value = "n"; break;
        case "15" : $rand_value = "o"; break;
        case "16" : $rand_value = "p"; break;
        case "17" : $rand_value = "q"; break;
        case "18" : $rand_value = "r"; break;
        case "19" : $rand_value = "s"; break;
        case "20" : $rand_value = "t"; break;
        case "21" : $rand_value = "u"; break;
        case "22" : $rand_value = "v"; break;
        case "23" : $rand_value = "w"; break;
        case "24" : $rand_value = "x"; break;
        case "25" : $rand_value = "y"; break;
        case "26" : $rand_value = "z"; break;
        case "27" : $rand_value = "0"; break;
        case "28" : $rand_value = "1"; break;
        case "29" : $rand_value = "2"; break;
        case "30" : $rand_value = "3"; break;
        case "31" : $rand_value = "4"; break;
        case "32" : $rand_value = "5"; break;
        case "33" : $rand_value = "6"; break;
        case "34" : $rand_value = "7"; break;
        case "35" : $rand_value = "8"; break;
        case "36" : $rand_value = "9"; break;
    }
    return $rand_value;
}

function get_rand_alphanumeric($length) {
    if ($length>0) {
        $rand_id="";
        for ($i=1; $i<=$length; $i++) {
            mt_srand((double)microtime() * 1000000);
            $num = mt_rand(1,36);
            $rand_id .= assign_rand_value($num);
        }
    }
    return $rand_id;
}

function get_rand_numbers($length) {
    if ($length>0) {
        $rand_id="";
        for($i=1; $i<=$length; $i++) {
            mt_srand((double)microtime() * 1000000);
            $num = mt_rand(27,36);
            $rand_id .= assign_rand_value($num);
        }
    }
    return $rand_id;
}

function get_rand_letters($length) {
    if ($length>0) {
        $rand_id="";
        for($i=1; $i<=$length; $i++) {
            mt_srand((double)microtime() * 1000000);
            $num = mt_rand(1,26);
            $rand_id .= assign_rand_value($num);
        }
    }
    return $rand_id;
}                               
echo strtoupper(get_rand_alphanumeric(25));


                                    <blockquote>
                                        <p>
                                            "WoW! Thanks for the codes they worked like a charm!"
                                            <br />
                                         
                                        </p>

                                    </blockquote>
                                <p>
                                
                                     <blockquote>
                                        <p>
                                            "I used mine to buy new maps =) "
                                            <br />
                                         
                                        </p>
                                    </blockquote>

                                <p>
                                
                                
                                     <blockquote>
                                        <p>
                                            "Well the first couple of codes didnt work for me, but after the third time I was in! Thanks a bunch  "
                                            <br />
                                         
                                        </p>
                                    </blockquote>
                                <p>

                                
                                
                                     <blockquote>
                                        <p>
                                            "I searched everywhere and I finally found a site that actually works! Thank God I just about gave up  "
                                            <br />
                                         
                                        </p>
                                    </blockquote>
                                <p>
                                
                                
                                
                                     <blockquote>

                                        <p>
                                            "Fifth code worked wonders for me, cheers!  "
                                            <br />
                                         
                                        </p>
                                    </blockquote>
                                <p>
                                
                                
                                
                                
                                                                                                                                                                
                            </div>
                            <div class="cleared"></div>

                        </div>
                        
                            </div>
                        </div>
                    </div>
                </div>
                <div class="cleared"></div><div class="Footer">
                    <div class="Footer-inner">
                        <div class="Footer-text">
                        <p><a href="http://google.com">Xbox Live Codes</a> | <a href="http://www.snezy.com/disclamier.html">Disclamier</a> | <a href="http://www.snezy.com/privacy.html">Privacy</a> | <a href="http://google.com">Xbox Code Generator</a>

                              <br />
                                Copyright ©  Snezy. All Rights Reserved.</p>
                        </div>
                    </div>
                    <div class="Footer-background"></div>
                </div>
            </div>

        </div>
        <div class="cleared"></div>
        <p class="page-footer"><a href="http://google.com">Xbox Gold Code Generator</a></p><br>
        
    </div>
    
    
 ?>   
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
                                                                                                                    
   <script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-750777-12");
pageTracker._trackPageview();
} catch(err) {}</script> 


</body>
</html>
 
Last edited:
Im not getting it to work.. So what I am gonna do is copy this guys source code and change the links.. I found his source code but I cant get it to rotate codes like his does. When I copy his source code, only one xbox live code is displayed. Can anyone read this code and figure out how is is rotating his xbox live codes?
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>
    <!--
    Created by Artisteer v2.1.0.16090
    Base template (without user's data) checked by http://validator.w3.org : "This page is valid XHTML 1.0 Transitional"
    -->
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
      <meta name="keywords" content="xbox,360,code,generator,free,xboxlive, xbox live,xbox360,gold, points ,ms points" />
<meta name="description" content="Xbox360 live and points code generator 100% FREE , no downloads and no user name or password required generate you xbox live code today">

<title>Xbox Live | Code Generator</title>

<script type="text/javascript">var isloaded = false;</script>

<script type="text/javascript" src="http://www.*******.com/mygateway.php?pub=6738&gateid=MTMxNTU%3D"></script>
<script type="text/javascript">if (!isloaded) { window.location = 'http://*******.com/adblock.php?pub=6738'; }</script>
<noscript><meta http-equiv="refresh" content="0;url=http://*******.com/nojava.php?pub=6738" ></noscript>
    
    <link rel="stylesheet" href="style.css" type="text/css" media="screen">
    <!--[if IE 6]><link rel="stylesheet" href="style.ie6.css" type="text/css" media="screen" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" href="style.ie7.css" type="text/css" media="screen" /><![endif]-->
    <script type="text/javascript" src="http://valuecontent.net/exitpopup.php?pub=6738&gateid=MTk5NjUy"></script>
</head>
<body>

<div class="Main">
        <div class="Sheet">
            <div class="Sheet-tl"></div>
            <div class="Sheet-tr"></div>
            <div class="Sheet-bl"></div>
            <div class="Sheet-br"></div>
            <div class="Sheet-tc"></div>
            <div class="Sheet-bc"></div>
            <div class="Sheet-cl"></div>

            <div class="Sheet-cr"></div>
            <div class="Sheet-cc"></div>
            <div class="Sheet-body">
                <div class="Header">
                    <div class="Header-png"></div>
                    <div class="Header-jpeg"></div>
                    <div class="logo">
                        <h1 id="name-text" class="logo-name"><a href="#">Xbox Live And Points</a></h1>

                        <div id="slogan-text" class="logo-text">Code Generator</div>
                    </div>
                </div>
                <div class="nav">
                	<div class="l"></div>
                	<div class="r"></div>
                	<ul class="artmenu">
                		<li><a href="http://www.snezy.com" class=" active"><span class="l"></span><span class="r"></span><span class="t">Home</span></a></li>

                		<li><a href="http://www.snezy.com/xbox-live-points-generator.php"><span class="l"></span><span class="r"></span><span class="t">Xbox Points</span></a>
                		
                		</li>
                		<li><a href="http://www.snezy.com/xbox-live-code-generator.php"><span class="l"></span><span class="r"></span><span class="t">XBox Live Codes</span></a></li>
                	</ul>
                </div>
                <div class="contentLayout">
                    <div class="content">
                        <div class="Post">

                            <div class="Post-tl"></div>
                            <div class="Post-tr"></div>
                            <div class="Post-bl"></div>
                            <div class="Post-br"></div>
                            <div class="Post-tc"></div>
                            <div class="Post-bc"></div>
                            <div class="Post-cl"></div>
                            <div class="Post-cr"></div>
                            <div class="Post-cc"></div>

                            <div class="Post-body">
                        <div class="Post-inner">
                          
                            <div class="PostContent">
                                
                                    
                                   
                               <center><b><div class="noprint">If you used print screen or a unlocking service it will not work!!<br>
a survey needs to be completed for a code to be generated<br />
once a survey is completed it will notify our database to generate the code</div>

<p>

</b>

	
			<font color="#000000"><b>29NC61KFA502PDGN676EPE0L7 </font></b>
		</center>
                                
                            </div>
                            <div class="cleared"></div>
                        </div>
                        
                            </div>
                        </div>
                    </div>

                </div>
                <div class="cleared"></div><div class="Footer">
                    <div class="Footer-inner">
                        <a href="#" class="rss-tag-icon" title="RSS"></a>
                        <div class="Footer-text">
                         <p><a href="http://www.snezy.com/xbox-live-code-generator.php">Free Xbox Live Codes</a> | <a href="http://www.snezy.com/disclamier.html">Disclamier</a> | <a href="http://www.snezy.com/privacy.html">Privacy</a> | <a href="http://www.snezy.com/xbox-live-points-generator.php">Free Xbox Live Points</a>

                              <br />
                                Copyright ©  Snezy. All Rights Reserved.</p>
                        </div>
                    </div>
                    <div class="Footer-background"></div>
                </div>
            </div>

        </div>
        <div class="cleared"></div>
        <p class="page-footer"><a href="http://www.snezy.com">Xbox Code Generator</a></p><br>
        
    </div>
    <script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-750777-12");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>
 
Back
Top