Newbie to PHP
#1

Hey everybody, i just configured a Panel for my samp server that dosen't had Encryption when you login, i added it succesfuly but my question is: Is safe to do this this way?
After my edit:
Код:
$q = Config::$g_con->prepare('SELECT * FROM `playerinfo` WHERE `Name` = ? AND `Pass` = ?');
		$q->execute(array($_POST['username_'],hash( 'whirlpool',$_POST['password_'])));
		if($q->rowCount()) {
			$d = Config::$g_con->prepare('SELECT * FROM `panel_restrict` WHERE `PlayerName` = ?');
			$d->execute(array($_POST['username_']));
			$row1 = $d->fetch(PDO::FETCH_OBJ);
Before:
Код:
$q = Config::$g_con->prepare('SELECT * FROM `playerinfo` WHERE `Name` = ? AND `Pass` = ?');
		$q->execute(array($_POST['username_'],$_POST['password_']));
		if($q->rowCount()) {
			$d = Config::$g_con->prepare('SELECT * FROM `panel_restrict` WHERE `PlayerName` = ?');
			$d->execute(array($_POST['username_']));
			$row1 = $d->fetch(PDO::FETCH_OBJ);
Reply


Messages In This Thread
Newbie to PHP - by qUneT - 25.10.2016, 17:40
Re: Newbie to PHP - by BlackBank - 30.10.2016, 12:39
Re: Newbie to PHP - by BroZeus - 31.10.2016, 05:28
Re: Newbie to PHP - by Luis- - 31.10.2016, 10:05

Forum Jump:


Users browsing this thread: 1 Guest(s)