Skip to content

Instantly share code, notes, and snippets.

@boazcstrike
Last active September 12, 2017 07:47
Show Gist options
  • Save boazcstrike/4e08f900268e08f07b6d22e0714ce33c to your computer and use it in GitHub Desktop.
Save boazcstrike/4e08f900268e08f07b6d22e0714ce33c to your computer and use it in GitHub Desktop.
<?php
include("sql_connection_file.php");
if(isset($_POST[user_form])){
$sqlquery = mysqli_query($link,"SELECT * FROM login_user WHERE username ='$username' AND password = md5('$password')");
$username = mysqli_real_escape_string($link,stripslashes($_POST['username']));
$init_password = mysqli_real_escape_string($link,stripslashes($_POST['password']));
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment