Skip to content

Instantly share code, notes, and snippets.

<?php
$action = $_GET['action'];
if($action == "login"){
ob_start();
session_start();
$username = $_POST['email'];
$password = $_POST['password'];
$sql_check = mysql_query("select * from users where mail='".$username."' and password='".$password."' ") or die(mysql_error());
<?php
$action = $_GET['action'];
if($action == "login"){
ob_start();
session_start();
$username = $_POST['email'];
$password = $_POST['password'];
$sql_check = mysql_query("select * from users where mail='".$username."' and password='".$password."' ") or die(mysql_error());