function DatabaseHandler::get_school_id_for_user_id
Search API
7.x DatabaseHandler.php | DatabaseHandler::get_school_id_for_user_id($user_id) |
6.x DatabaseHandler.php | DatabaseHandler::get_school_id_for_user_id($user_id) |
File
- classes/
DatabaseHandler.php, line 1023
Class
Code
function get_school_id_for_user_id($user_id) {
return intval(db_result(db_query("SELECT school_id FROM users WHERE user_id = ?", array($user_id))));
}