Jump to content

reecieboy

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Everything posted by reecieboy

  1. Whats wrong with the above? Problem with query: UPDATE users SET sessionid=27768e4a7b8a093671bf7c4f1e883ed9 WHERE userid=user You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'a7b8a093671bf7c4f1e883ed9 WHERE userid=user' at line 1
  2. 27768e4a7b8a093671bf7c4f1e883ed9 session id shows up but Problem with query: INSERT * INTO users (sessionid) WHERE userid=user VALUES(session_id) You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '* INTO users (sessionid) WHERE userid=user VALUES(session_id)' again thank you
  3. i changed the code in the first message to wat you said 2. but still same error T_STRING except line 49 now
  4. [code]<html> <head> <title>PWN|CLAN - Login</title> <style> body {     background-color: Black;     color: White;     font-family: Tahoma, sans-serif;     font-size: 100%; } #userpass {     width: 60px;     border-color:#777777;     background-color: #FFFFFF;     color: #000000; } #subm {     border-color: #777777;     background-color: #FFFFFF;     color: #000000; } </style> </head> <body> <?php if (!isset($_POST['submit']) || (isset($_POST['submit']) && $_POST['username'] == '') || (isset($_POST['submit']) && $_POST['password'] == '')) {         echo "<form name='zlogin' method='POST' action='" . $_SERVER['PHP_SELF'] . "'>";         echo "Username:&nbsp;&nbsp;<input type='text' name='username' id='userpass'><br>";         echo "Password:&nbsp;&nbsp;<input type='password' name='password' id='userpass'><br>";         echo "<input type='submit' name='submit' value='Login' id='subm'>&nbsp;<input type='reset' name='reset' value='Reset' id='subm'>";         echo "</form>";     }else {         mysql_connect("localhost", "root", "chaos") OR die('password');         mysql_select_db("main") OR die('Connecting');         $q = "SELECT * FROM users WHERE userid='". $_POST['username']. "' AND password='".$_POST['password'] . "'";         $rs = mysql_query($q) or die('Problem with query: ' . $q . '<br />' . mysql_error());       $qquery = mysql_fetch_array($rs);         if ($qquery['userid'] == $_POST['username'] && $qquery['password'] == $_POST['password']) {             session_name('login');             session_start();                          $_SESSION['username'] = $_POST['username'];             $_SESSION['password'] = $_POST['password'];         echo session_id();                  $q = ""INSERT * INTO users (sessionid) WHERE userid=".$_POST['username']." VALUES(session_id)";         $rs = mysql_query($q) or die('Problem with query: ' . $q . '<br />' . mysql_error());                          echo "Successfully logged in as: ".$_POST['username']."<br><a href='index.php?page=your_account'>Click here to continue...</a>";         }else {             echo "Login failed,<br><a href='index.php?page=login'>Click here to try again...</a>";     }                           } ?> </body> </html>[/code] by the way u kno any good session tutorials?
  5. thank you, it now works :D
  6. thanks hold up ill try that
  7. thanks for pointing that out, fixed
  8. [!--quoteo(post=362974:date=Apr 9 2006, 08:26 AM:name=theone)--][div class=\'quotetop\']QUOTE(theone @ Apr 9 2006, 08:26 AM) [snapback]362974[/snapback][/div][div class=\'quotemain\'][!--quotec--] well lets start with basic html. tahoma is not a font family its merely a font face. a family consists of more than one. but you need to be more specific as to what is not working or what errors its spitting out. [/quote] ok fair enough lol. umm [a href=\"http://203.87.72.141/login.php\" target=\"_blank\"]http://203.87.72.141/login.php[/a] mysql fetch array is not a valid resource.. and cheers for this :D
  9. reecieboy

    Help

    hey can someone please help me debug the following: [a href=\"http://pastebin.com/649448\" target=\"_blank\"]http://pastebin.com/649448[/a] anyhelp is highly appreciated
×
×
  • 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.