+ Changed from MySQL to MySQLi native driver.
+ Added 2 new functions in DataBase class: fetch($query) and num_rows($query) git-svn-id: https://svn.pioder.pl/uf-svn/uF@20 72ec579a-5ced-4fa4-82f3-afba5d98df2f
This commit is contained in:
@@ -53,7 +53,7 @@ if ( ereg ("^.+@.+\..+$", $_POST['email']))
|
||||
{
|
||||
$sql = "SELECT * FROM `".USERS_TABLE."` WHERE `nick`='$nick'";
|
||||
$query = DataBase::sql_query($sql,'GENERAL','Could not obtain user information.');
|
||||
$result = mysql_fetch_array($query);
|
||||
$result = DataBase::fetch($query);
|
||||
$result = $result['nick'];
|
||||
if ($result!=$nick)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user