Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("connection.php");
- @session_start();
- if (isset($_POST['username']) && isset($_POST['password']))
- {
- $username = $_POST['username'];
- $password = $_POST['password'];
- $query1 = mysql_query("SELECT * FROM users WHERE username = '$username' AND userpass = '$password'");
- if (mysql_num_rows($query1) != 0)
- {
- $row1 = mysql_fetch_array($query1);
- $_SESSION['hotmessengersession'] = "57UW". $row1['userid'] ."FI139";
- echo "SUCCESSFUL_LOGIN";
- }
- else {
- echo "WRONG_LOGIN";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement