We did not got any error but it did not work. We tried these queries.
Code:
$query = $db->query("here the query");
if (XenForo_Application::get('db')->fetchRow($query))
{
code here
}
}
$query = $db->fetchAll("here the query");
if (XenForo_Application::get('db')->fetchRow($query))
{
code here
}
}
What we are trying to do is to search all the users tables for the emails and if a user is registered again with the same email he will get a message.