Jump to content

Canadiengland

Members
  • Posts

    38
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Male

Canadiengland's Achievements

Member

Member (2/5)

0

Reputation

  1. could this simply be a problem with my cookies / intranet?
  2. GAH SO FRUSTRATING. i echoed the player name and it DOES know ive logged in but BAM as soon as i refresh im not
  3. no clue it worked yesterday but now its not haha i didnt alter anything
  4. like i said, i know its written poorly but w.e it worked before, now it just stopped all of a sudden i dont remember changing anything
  5. didnt work. i dont think thats the case, i have that on the index pages and what not
  6. use a random number to pick an image verification picture that they have to click on?
  7. <html> <head> <style type="text/css"> <!-- body { background-color: #110f0c; margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } --> </style> </head> <body> <font color="#990000"> <link rel="stylesheet" href="loginstyle.css" type="text/css"> <?php include "connect.php"; if (isset($_POST['submit'])) // name of submit button { $player=$_POST['player']; $password=$_POST['password']; $player=strip_tags($player); $password=md5($password); $query = "select * from km_users where playername='$player' and password='$password' and validated='1'"; $result = mysql_query($query) or die("No te Gusta") ; $result2=mysql_fetch_array($result); if($result2) { session_start(); $_SESSION['player']=$player; print "logged in successfully<br><br>"; print "<A href='index.php'>Go to Admin Panel</a>"; } else { echo "<center><table width='750' height='144'><td>"; include 'top.php'; // top echo "</td></table>"; echo "<table width='750' height='30'><td width='750'><center><img src='images/statusbar.jpg'>"; echo "<center><br><table class='maintable' width='750' height='500'>"; echo "<td>"; print "<center>Wrong username or password or non-activated account."; print "<center><A href='index.php'>Back</a></center>"; echo "</td></table>"; } } ?> </body> </html> authenticate.php <?php parse_str("$QUERY_STRING"); $db = mysql_connect("localhost", "root", "stars") or die("Could not connect."); if(!$db) die("no db"); if(!mysql_select_db("monster",$db)) die("No database selected."); if(!get_magic_quotes_gpc()) { $_GET = array_map('mysql_real_escape_string', $_GET); $_POST = array_map('mysql_real_escape_string', $_POST); $_COOKIE = array_map('mysql_real_escape_string', $_COOKIE); } else { $_GET = array_map('stripslashes', $_GET); $_POST = array_map('stripslashes', $_POST); $_COOKIE = array_map('stripslashes', $_COOKIE); $_GET = array_map('mysql_real_escape_string', $_GET); $_POST = array_map('mysql_real_escape_string', $_POST); $_COOKIE = array_map('mysql_real_escape_string', $_COOKIE); } ?> connect.php i know its written horribly but it worked before i stopped workin on it for a while
  8. for some reason, when i try to register a new account to my game it says "cannot register user". ive searched for this in my php files but cannot find it. also, when i try to log in to my game, it works and displays the new page. but the moment i refresh it says i am not logged in again. is this a problem with my cookies? does anyone have any ideas?
  9. aha knew it was something easy - havent been at this in a while - thanks teng!
  10. $selectuser="SELECT * from km_users order by pkpoints ASC"; $selectuser2=mysql_query($selectuser) or die("could not select item"); while($selectuser3=mysql_fetch_array($selectuser2)) { print "<br>$selectuser3[playername]<br><br>"; } i want this to return only the top 5 of the list. how can i limit the query?
  11. SOLVED! added a <td> after each echo and that solved it. thanks for all the help project and frost!
  12. well i kinda fixed it... the way you put it up there made it so that each item would be displayed according to pic... but i wanted it to be each item.. so i changed !in_array($uneq3['itempic'], $shown_items)) to !in_array($uneq3['id], $shown_items)) but ive still got the problem of each pic has the same url when they are 2 different ids
  13. database structure of km_items is name power type expperturn rageperturn itempic owner id status cost rarity raritymax itemfind
  14. may have spoke too soon - that displays a max of 2 seperate pics and both pics are linked to the same url... hmm
×
×
  • 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.