Jump to content

hilda

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About hilda

  • Rank
    Newbie
  1. Hello everyone I've got a salary.txt as follow: And the php code with follow:<?$salary = file("salary.txt");echo max($salary);echo min($salary);?> But the output is: 900017000 Any ideas? Thanks!
  2. HiHere is the login page <?session_start(); session_register("login_session"); $username = "";$password = ""; if (isset($_POST["Username"])) $username = $_POST["Username"];if (isset($_POST["Password"])) $password = $_POST["Password"]; if ($username != "" && $password != "") { $link = mysql_connect("localhost","root","root"); mysql_select_db("database"); $sql = "SELECT * FROM trainee WHERE password='"; $sql.= $password."' AND username='".$username."'"; $result = mysql_query($sql); if (mysql_fetch_row($result) != false) { $_SESSION["login_session"] = true; i
×
×
  • Create New...