I'm not sure whether this actually has anything to do with the PHP in my site but oh well...
Anyway, I've been working on this site for ages called WiiPages. I've finally got it working but I only tested it in IE7 and Firefox Portable. In case you didn't realise it, it's designed to be used on a Nintendo Wii, and that uses it's own version of Opera. Anyway, I tried it on my Wii earlier and It turns out it doesn't display properly. I then told my friend about it and he tried it in Safari, which also doesn't work.
I can't work out what's wrong at all so I'll post the code of the main file (index.php is just an Iframe containing the main page, so the main page doesn't display properly in any browser unless you use the Iframe, it uses a background which is tiled, so it cuts it off at the edge).
The link to the website is http://www.wiipages.org and then you click the link to enter the Wii section of the site. Before that you just get the blog-style news page.
Index.php:
WiiPages.php (Main page):
Thanks for any help
Anyway, I've been working on this site for ages called WiiPages. I've finally got it working but I only tested it in IE7 and Firefox Portable. In case you didn't realise it, it's designed to be used on a Nintendo Wii, and that uses it's own version of Opera. Anyway, I tried it on my Wii earlier and It turns out it doesn't display properly. I then told my friend about it and he tried it in Safari, which also doesn't work.
I can't work out what's wrong at all so I'll post the code of the main file (index.php is just an Iframe containing the main page, so the main page doesn't display properly in any browser unless you use the Iframe, it uses a background which is tiled, so it cuts it off at the edge).
The link to the website is http://www.wiipages.org and then you click the link to enter the Wii section of the site. Before that you just get the blog-style news page.
Index.php:
| Code: |
| <body>
<p align = "center"> <iframe width = "919" height = "675" src = "WiiPages.php" frameborder = "0"> </p> </body> |
WiiPages.php (Main page):
| Code: |
| <html>
<body background="images/WiiPagesTemplate.png"> <?php // Connects to your Database mysql_connect("localhost", "__________", "_____") or die(mysql_error()); mysql_select_db("__________") or die(mysql_error()); //checks cookies to make sure they are logged in if(isset($_COOKIE['WiiPages'])) { $username = $_COOKIE['WiiPages']; $pass = $_COOKIE['WiiWii']; $check = mysql_query("SELECT * FROM users WHERE username = '$username'")or die(mysql_error()); while($info = mysql_fetch_array( $check )) { //if the cookie has the wrong password, they are taken to the login page if ($pass != $info['password']) { header("Location: login.php"); } //otherwise they are shown the admin area else { ?> <br> <iframe width = "246" height = "161" src = "LogoutButton.php" frameborder = "0" scrolling = "no" name="slot1"></iframe> <?php $slots = mysql_query("SELECT * FROM slots WHERE username = '" . $username . "'")or die(mysql_error()); while($slotsarr = mysql_fetch_array( $slots )) ?> <iframe width = "246" height = "161" src = "slot.php?slot=2" frameborder = "0" scrolling = "auto"></iframe> <iframe width = "246" height = "161" src = "slot.php?slot=3" frameborder = "0" scrolling = "auto"></iframe> <br><br><br><br> <iframe width = "246" height = "161" src = "slot.php?slot=4" frameborder = "0" scrolling = "auto"></iframe> <iframe width = "246" height = "161" src = "Ad.php" frameborder = "0" scrolling = "no"> </iframe> <iframe width = "246" height = "161" src = "slot.php?slot=6" frameborder = "0" scrolling = "auto"></iframe> <br><br><Br><BR> <iframe width = "246" height = "161" src = "slot.php?slot=7" frameborder = "0" scrolling = "auto"></iframe> <iframe width = "246" height = "161" src = "slot.php?slot=8" frameborder = "0" scrolling = "auto"></iframe> <iframe width = "246" height = "161" src = "slot.php?slot=9" frameborder = "0" scrolling = "auto"></iframe> <?php } } } else //if the cookie does not exist, they are taken to the login screen { ?> <br> <iframe width = "246" height = "161" src = "LoginButton.php" frameborder = "0" scrolling = "no" name="slot1"> </iframe> <iframe width = "246" height = "161" src = "RegisterButton.php" frameborder = "0" scrolling = "auto"></iframe> <iframe width = "246" height = "161" src = "EmptySlot.php" frameborder = "0" scrolling = "no"></iframe> <br><br><br><br> <iframe width = "246" height = "161" src = "EmptySlot.php" frameborder = "0" scrolling = "no"> </iframe> <iframe width = "246" height = "161" src = "Ad.php" frameborder = "0" scrolling = "no"></iframe> <iframe width = "246" height = "161" src = "EmptySlot.php" frameborder = "0" scrolling = "no"></iframe> <br><br><br><br> <iframe width = "246" height = "161" src = "EmptySlot.php" frameborder = "0" scrolling = "no"> </iframe> <iframe width = "246" height = "161" src = "EmptySlot.php" frameborder = "0" scrolling = "no"></iframe> <iframe width = "246" height = "161" src = "EmptySlot.php" frameborder = "0" scrolling = "no"></iframe> <?php } ?> </body> </html> |
Thanks for any help
