Jump to content

Any clues?


Phpfr3ak

Recommended Posts

Hi, fairly new to php, can't seem to figure out why this isn't working, it did before i added the $level_type aspect in... which i need to work with the way ive changed my script, any ideas as to why its not working?

 

  if ($token == $_SESSION['token']){
      $sql = "SELECT * FROM skills WHERE id=$sid";
      $que = mysql_query($sql) or die(mysql_error());
      $res = mysql_fetch_array($que);
      //code goes here
      if ($playerdata['$level_type'] < $res['level_req']) {
          echo "You don't have the required level to learn this skill<br><br><a href='doresearch.php?sid=$res[id]'>Return to skill points!</a>";
      }
      else {

Link to comment
https://forums.phpfreaks.com/topic/215659-any-clues/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.