engelsystem/includes/model/User_model.php

14 lines
252 B
PHP
Raw Normal View History

2012-12-26 14:02:27 +01:00
<?php
/**
* Returns user by id.
* @param $id UID
*/
function User($id) {
$user_source = sql_select("SELECT * FROM `User` WHERE `UID`=" . sql_escape($id) . " LIMIT 1");
if(count($user_source) > 0)
return $user_source[0];
return null;
}
?>