Battle Zone
We think you should log in. Don't you?


This is the site for everything and anything you want to talk about. Want to discuss the latest games? Done. Want to have fun? Done. This is THE place to have a great time.
 
HomePortalFAQMemberlistRegisterLog in

Share | 
 

 i cant get any thing to show up

View previous topic View next topic Go down 
AuthorMessage
Night Angel
FRESH MEAT
avatar

Join date : 2010-03-10
Posts : 10


PostSubject: i cant get any thing to show up   Tue Apr 13, 2010 10:30 am

Code:

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
   <head>
      <title>Array 8
      </title>
   </head>
   <body>
      <table>
         <?php
            $y=array('Baja ','Legacy ','Impreza ','Brat ','GL ','B9 ','XT ','SVX ');
               for($x=0;$x<=7;$x++){
                  echo "<tr><td>".$y."</td><td>".$y[$x]."</td></tr>";
               }
         ?>
      </table>
   </body>
</html>
Back to top Go down
http://bbrhds21@gmail.com
Night Angel
FRESH MEAT
avatar

Join date : 2010-03-10
Posts : 10


PostSubject: Re: i cant get any thing to show up   Tue Apr 13, 2010 10:35 am

here is the link

http://ito.auburncc.org/localuser/jrhodes/41310_1.php
Back to top Go down
http://bbrhds21@gmail.com
Old Amsterdam
Bow Before Thy Master
Bow Before Thy Master
avatar

Join date : 2010-03-04
Rank : Head Admin / Site Owner

Posts : 7269


PostSubject: Re: i cant get any thing to show up   Tue Apr 13, 2010 10:37 am

Code:
<?xml version="1.0" encoding="utf-8"?>
<!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" xml:lang="en" lang="en">
   <head>
      <title>
         41310_1.php
      </title>
   </head>
   <body>
   <!--author:shane nelson-->
      <table border="1">
         <?php
            $x=array('Baja','Legacy','Impreza','Brat','GL','B9','XT','SVX');
            for ($y=0;$y <= 7;$y++)
               {
                  echo "<tr><td>".$y."</td><td>".$x[$y]."</td></tr>";
               }
         ?>
      </table>
   </body>
</html>

That's how I did mine. I think what's up with yours is that you have your variables switched. Instead of
Code:
 echo "<tr><td>".$y."</td><td>".$y[$x]."</td></tr>";

You might want
Code:
 echo "<tr><td>".$x."</td><td>".$y[$x]."</td></tr>";


Nevermind, you just told me you got it to work.

_________________
As authors, it is our Duty
To create lovable, enticing Characters
And do horrible, evil things to Them.

Back to top Go down
http://battlezone.forumotion.net/
Sponsored content




PostSubject: Re: i cant get any thing to show up   

Back to top Go down
 

i cant get any thing to show up

View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Battle Zone :: Extra! Extra! :: Random-
Jump to: