- // The getUserDetails function returns user details.
- static function getUserDetails($user_id) {
- $result = array();
- $mdb2 = getConnection();
-
- $sql = "select * from tt_users where id = $user_id";
- $res = $mdb2->query($sql);
-
- if (!is_a($res, 'PEAR_Error')) {
- $val = $res->fetchRow();
- return $val;
- }
- return false;
- }
-