Chat window now opens with no messages inside.
[Assignment-Trapper.git] / sched_edit.php
blob03936890ac237adeb444823c59dbce2d2191f2f2
1 <?php
3 include_once("auth.php");
5 $_COOKIE["username"] = mysql_real_escape_string($_COOKIE["username"]);
6 $_COOKIE["password"] = mysql_real_escape_string($_COOKIE["password"]);
8 $sql = "select count(*), user_id from users where email='". $_COOKIE["username"]. "' and password='".$_COOKIE["password"]."'";
10 $result = mysql_query($sql);
12 if (!$result) { die("SQL ERROR"); }
14 $row = mysql_fetch_row($result);
16 if($row[0] > 0) { } else { echo "Incorrect Username or Password."; }