core/functions.php
/* Returns boolean, check if login is in database */
Returns boolean, check if login is in database
Returns boolean check if login is in database
function user_exists($login)
	{
		$query = 'SELECT count(*)
							FROM user
							WHERE user_login = \'' . $login . '\';';
		$result = $dbsocket->query($query);
		if($result->fetchColumn() > 0)
		{
			return true;
		}
		else
		{
			return false;
		}
	}
function user_exists ( $ login ) { $ query = 'SELECT count(*)
							FROM user
							WHERE user_login = \'' . $ login . '\';' ; $ result = $ dbsocket -> query ( $ query ) ; if ( $ result -> fetchColumn ( ) > 0 ) { return true ; } else { return false ; } }
Returns boolean, check if login is in database
Returns boolean check if login is in database