function getInfoForUser($id) {
global $db;
$user_info_get = $db->fetchRow("select `user_info` from ".TABLE_USERS." where `id`='$id'");
if(!$user_info_get) return 0;
return $user_info_get;
}
$user_info_get = users::getInfoForUser($crt_usr);
$smarty->assign("user_info_get", $user_info_get);
<p>{$user_info_get}</p>