ok, im really getting pissed off at this script of mine:mad: :mad: :mad:
ill put my code below:
<html>
<head><title>DXL.nET=Home</title>
<?php
$style = mt_rand(1, 3);
$_work = "(still working on)";
$news = "<bdo id=\"red\">Version 0.8.7 of my site is up!</bdo>";
$email = "hydragundam7@yahoo.com";
print("<link rel=\"stylesheet\" type=\"text/css\" href=");
IF ( $style = 1 ) {
print("\"style1.css\">");#Concludes link tag
} ELSEIF ( $style = 2 ) {
print("\"style2.css\">");#Concludes link tag
} ELSEIF ( $style = 3 ) {
print("\"style3.css\">");#Concludes link tag
} ELSE {
print("\"error\">Error on PHP load. May be website problem");
print("</head>");
print("<body><!--Body start//-->");##########################--Menu--#####################################
print("<div id=\"divLEFT\">");
print("<a href=\"home.php\">Home</a><br>");
print("<a href=\"athenasia.php\">Athenasia</a><br>");
print("<a href=\"download.php\">Downloads</a><br>");
print("<a href=\"screen.php\">Screenshots</a><br>");
print("<a href=\"tut.php\">Tutorials</a><br>");
print("<a href=\"misc.php\">Misc.</a><br>");
print("<a href=\"submit.php\">Submit</a><br>");
/////////////////Affiliates////////////////////
print("<a href=\"http://www.dynamicdrive.com/\" title=\"Looking for tricky things to add into your site? Click here!\"><img src=\"pic/affiliate/a.dy.gif\" width=\"75\" height=\"30\"></a><br>");
print("<a href=\"http://www.runescape.com/\" title=\"Play one of the coolest online games ever made, here!\"><img src=\"pic/affiliate/a.rune.png\" width=\"75\" height=\"30\"></a><br>");
print("<a href=\"http://www.habbohotel.com/\" title=\"A game where you can chat and hang with your friends\"><img src=\"pic/affiliate/a.habbo.png\" width=\"75\" height=\"30\"></a><br>");
print("</div>");
#####################--Main Window--###################################
print("<div id=\"divRIGHT\">");
print("<h1 align=\"center\">Home</h1><br>");
print("Latest News: $news <br><br>");
print("This is my site, all about my game Athenasia. If you didn't read the latest news, my site is being upgraded now and then. So, if you see a difference in appearence, or content, it has been upgraded. Please note, my site has a style randomizer on it, so if it looks different, it might not be an upgrade. This site has a page on the game itself, what it includes, etc. It also has a page of screenshots of my game.<bdo id=\"red\">If any of you can recommend a free screen device, email me.</bdo> There is also a page of all of my created games. Sorry, but you'll have to wait for them to get up there, since I still need to get the neccesary parts. The tutorial section has tutorials on HTML, PHP, RPGMaker2000, and CSS. Finally, the Misc section includes stuff from you, and Submit section, is where you add your stuff, to my site. I hope you enjoy your stay!");
print("</div>");
?>
</body>
</html>
Currently, it says "parse error, unexpected $end in c:\program files\easyphp1-7\www\websitephp2\home.php on line 56", which is the last line.
but,i dont see whats wrong with it.
ive tried experimenting, by removing the </div> part, the </body> or </html> parts, or a combination of them, including the ?>, but i still get an error on the last line of my script.
help!
🙁