Jump to content
MakeWebGames

hamster01

Members
  • Posts

    1,108
  • Joined

  • Last visited

    Never

Everything posted by hamster01

  1. Re: Guess the next poster Cruell... I was typing! Scarlet next..
  2. Re: 3 Word Game and he went
  3. Re: Counting (nr game) 1231
  4. Re: TwIsTeD WiShEs ! Granted, The aliens invade the earth. I wish everyone used linux :(
  5. Re: [mccode] Close page system Yes, someone just admitted to me that they did give me ALOT of - points, but they did not know me then.
  6. Re: Counting (nr game) 1226
  7. Re: [mccode] Close page system I lost count of my karma :|
  8. Ello, everyone. For all the coders out there.. Why is it you code? Why dont you just give up? There has to be a reason why you code. It may just be for relaxation or maybe for some extra income? Whatever it is post it :)
  9. Re: No Database Selected try the one i just posted :s
  10. Re: No Database Selected hmm... Maybe your hos tis doing maintenance?
  11. Re: No Database Selected :| try: <?php $c = mysql_connect('localhost','fallen','password'); mysql_select_db('fallen_fallen',$c); ?>
  12. Re: No Database Selected There will be:   Current Databases: fallen DELETE CHECK REPAIR Under that: Look for: "Connection Strings" The php one
  13. Re: No Database Selected hmm.. Goto mysql databases. You will see a connection script there. change the first var to $c. It should work then
  14. Re: No Database Selected One last thing losty.. I gave my whole script ;) --------Done----------   KrAiG, try the one i gave you(authenticate.php). It cant be the mysql.php as your register works.
  15. Re: No Database Selected lol fine run away from your own post. I did supply an solution to him ;)
  16. Re: No Database Selected So protection against sql injections, and sql optimation is useless? Remember than ;)
  17. Re: No Database Selected SO you took it without asking me :o Thief! And FYI, Kraig's msn does not work ;)
  18. Re: No Database Selected Lost one f**koff. My authenticate.php has a connection to the database ****! You are truly the LOST one here   I edited a word which would offend, at the very least, most women. -vinyl
  19. Re: No Database Selected Cool ;) Anyone else using this must ask me :@ Here is mine: <?php session_start(); include "mysql.php"; global $c; ?> <style type='text/css'> .style1 { font-family: Tahoma; font-size: x-small; } .style2 { font-family: Tahoma; font-size: xx-small; color: #FFFFFF; font-weight: bold; } .style4 {font-size: xx-small; color: #999999; font-family: Tahoma;} .style7 {font-family: Tahoma; font-size: xx-small;} .style8 {font-size: xx-small} body { background-image: url([url]http://www.gangsterterritory.com/bgmain.gif[/url]); background-repeat: repeat; } </style> <title>Login</title> <center> <h3> <div align="center" class="style1"> [img=yourlogo.png]</p> <table width="50%" border="0" cellpadding="10" cellspacing="5"> <tr> <td bgcolor="#333333" class="style2">Login >> Authenticateion </td> </tr> <tr> <td bgcolor="#000000" class="style4"><div align="center"> <?php $user = $_POST['username']; $pass = $_POST['password']; $safe_user = mysql_real_escape_string($user); $safe_pass = mysql_real_escape_string($pass); if ($safe_user == "" || $safe_pass == "") { echo "You did not enter a Username or Password. <a href=login.php>> [b]Back[/b]</a>"; exit; } $uq = mysql_query("SELECT userid FROM users WHERE login_name='$safe_user' AND `userpass`=md5('$safe_pass')",$c) or die(mysql_error()); if (mysql_num_rows($uq)==0) { echo "Incorrect Username or Password. <a href=login.php>> [b]Back[/b]</a>"; exit; } else { $mem = mysql_fetch_array($uq); $_SESSION['loggedin']=1; $_SESSION['userid']=$mem['userid']; ?> <div align="center"> <p class="style7">[b]Processing Log in</span>[/b] </p> </div> <p align="center" class="style1"><span class="style8">If you are not redirected within 10 seconds please click [url='loggedin.php']here[/url]. </span> </p> <p align="center"><span class="style4"> </span><span class="style7">[email='[email protected]']Click here to contact an administrator.[/email]</span></p> <?php echo "<meta http-equiv='Refresh' content='5; URL=loggedin.php'>"; } ?> </td> </tr> </table> </p> </div> </center>
  20. Re: No Database Selected Your smoking something? :lol: Thats only with free hosting. Even on my local I dont use a preflix :loL:
  21. Re: No Database Selected uhuh. Nvm that. ill give you my authenticate.php Is secure and can handle much more login requests ;) what version are you using ?
  22. Re: No Database Selected check your conig file
  23. Re: No Database Selected   $uq=mysql_query("SELECT userid FROM users WHERE login_name='{$_POST['username']}' AND `userpass`=md5('{$_POST['password']}')",$c) or die(mysql_error());   to   $uq=mysql_query("SELECT userid FROM fallen.users WHERE login_name='{$_POST['username']}' AND `userpass`=md5('{$_POST['password']}')",$c) or die(mysql_error());
  24. Re: Counting (nr game) 1224
  25. Re: No Database Selected Well, just replace the tablename in the query's to that.
×
×
  • Create New...