Jump to content

dezkit

Members
  • Posts

    1,236
  • Joined

  • Last visited

Everything posted by dezkit

  1. rick rolled
  2. Thanks, topic solved, +bookmarked
  3. <bdo dir="rtl">HELLO MY NAME IS MAX</bdo> or <bdo dir="ltr">HELLO MY NAME IS MAX</bdo>
  4. what's a good "Type" i should use if i want to write an essay and store in it mysql, should i use varchar(255) ?
  5. yes there is a way
  6. rewrite the scripts so they are only in the root directory and place all the files in the root directory.
  7. <!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" xml:lang="en" lang="en"> <head> <title>DivnX :: Home</title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <link rel="stylesheet" type="text/css" href="css/divStyle.css" /> <script src="javascript/navigation.js" type="text/javascript"></script> </head> <body> <div id="gradient"> <div id="main"> <div id="banner"> <img src="images/Header.png" alt="DivnX" /> </div> <div id="logon"> <?php include("includes/Login.php"); ?> </div> </div> </div> <div id="content"> <div id="nav"> <ul id="menu" style="text-align: center"> <li>Site <ul> <li><a href="index.php?page=Home">News</a></li> <li><a href="index.php?page=Site_Map">Site Map</a></li> <li><a href="board/index.php">Forums</a></li> <li><a href="index.php?page=Members">Members</a></li> </ul> </li> <li>Guides <ul> <li><a href="index.php?page=C++">C++</a></li> <li><a href="index.php?page=Java">Java</a></li> <li><a href="index.php?page=PHP">PHP</a></li> <li><a href="index.php?page=CSS">CSS</a></li> <li><a href="index.php?page=HTML">HTML</a></li> </ul> </li> <li>Games <ul> <li><a href="index.php?page=Games">Coming Soon!</a></li> </ul> </li> <li>Account <ul> <li><a href="index.php?page=Settings">Settings</a></li> <li><a href="index.php?page=Stuff">My Stuff</a></li> <li><a href="index.php?page=Profile">Profile</a></li> </ul> </li> <li>Support <ul> <li><a href="index.php?page=Contact">Contact Us</a></li> <li><a href="index.php?page=FAQ">FAQ</a></li> <li><a href="index.php?page=Staff">Staff</a></li> <li><a href="index.php?page=Donate">Donate!</a></li> </ul> </li> </ul> </div> <div id="stuff"> <?php $page_name = $_GET['page']; if(!$page_name) { include("/index.php"); } elseif($page_name == 'Register') { include("/create.php"); } elseif($page_name == 'Site_Map') { include("/map.php"); } elseif($page_name == 'Members') { include("/members.php"); } elseif($page_name == 'C++') { include("/guides/c++.php"); } elseif($page_name == 'Java') { include("/guides/java.php"); } elseif($page_name == 'PHP') { include("/guides/php.php"); } elseif($page_name == 'CSS') { include("/guides/css.php"); } elseif($page_name == 'HTML') { include("/guides/html.php"); } elseif($page_name == 'Games') { include("/games.php"); } elseif($page_name == 'Settings') { include("/account/settings.php"); } elseif($page_name == 'Stuff') { include("/account/stuff.php"); } elseif($page_name == 'Profile') { include("/account/profile.php"); } elseif($page_name == 'Contact') { include("/support/contact.php"); } elseif($page_name == 'FAQ') { include("/support/faq.php"); } elseif($page_name == 'Staff') { include("/support/staff.php"); } elseif($page_name == 'Donate') { include("/support/donate.php"); } else { echo "404 Not Found!"; } ?> </div> </div> </body> </html>
  8. Change the links from index.php?content= to index.php?page= and use MY CODE
  9. http://localhost/phpmyadmin
  10. tell me all the destinations to where you got the links to example: /guides/c++.php
  11. <?php $page = $_GET["page"]; if (!$page) { include "/home.php"; } else if($page=="C++") { include "/guides/C++.php"; } else { echo "<b><h1>404 Error</h1></b>"; } ?>
  12. what's the page of C++ called?
  13. No problem, please click the "Topic Solved" button on the very bottom of this page.
  14. .... else if($page=="Home") { include "/home.php"; } .... ' $page=="Home" ' means that if page=Home ' { include "/home.php"; } ' means to include the file home.php therefore, if page=Home, include the file home.php edit: if you're new to php and don't know that i just made spaces in the php code, this is what it could look like... else if($page=="Home"){ include "/home.php"; }
  15. Yeah, index.php?page=about and about.php will show one thing, the content in about.php . edit: Yep.
  16. yes <?php //Calculate 60 days in the future //seconds * minutes * hours * days + current time $inTwoMonths = 60 * 60 * 24 * 60 + time(); setcookie('the_longest_cookie_name_in_the_world_of_php_html_javascript_and_so_on', date("G:i - m/d/y"), $inTwoMonths); ?>
  17. Place this code in index.php <?php $page = $_GET["page"]; if (!$page) { include "/home.php"; // THE DEFAULT PAGE A.K.A index.php } else if($page=="Home") { include "/home.php"; } // THE INDEX.PHP?PAGE=HOME PAGE A.K.A HOME.PHP else if($page=="About") { include "/about.php"; } // THE INDEX.PHP?PAGE=ABOUT PAGE A.K.A ABOUT.PHP else { echo "<b><h1>404 Error</h1></b>"; } // ERROR IF THERE IS NO PAGE ?> sorry if i didn't explain to you properly so... <a href="index.php?page=Home">home</a> will show you Home.php <a href="index.php?page=About">About</a> will show you About.php
  18. yeah, maple story is kinda stupid :-X but... 25,000,000 signatures created, crap, that's a shitload of traffic!
  19. <?php $page = $_GET["page"]; if (!$page) { include "/home.php"; } else if($page=="Home") { include "/home.php"; } else if($page=="About") { include "/about.php"; } else { echo "<b><h1>404 Error</h1></b>"; } ?>
  20. You're password is wrong that you placed on class.database.php
  21. <?php if($connection == AOL){ echo "This is 2008, dial up is for 18th century, thank you and bye"; } ?>
  22. can you furthermore elaborate what's wrong?
  23. i would prefer javascript?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.