blob: 49d1c7024316b8e08119e18c4b92ec9207f9456e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<?php
/**
* Returns AngelType id array
*/
function mAngelTypeList() {
$angelType_source = sql_select("SELECT `id` FROM `AngelTypes`");
if ($angelType_source === false)
return false;
if (count($angelType_source) > 0)
return $angelType_source;
return null;
}
/**
* Returns angelType by id.
*
* @param $id angelType ID
*/
function mAngelType($id) {
$angelType_source = sql_select("SELECT * FROM `AngelTypes` WHERE `id`=" . sql_escape($id) . " LIMIT 1");
if ($angelType_source === false)
return false;
if (count($angelType_source) > 0)
return $angelType_source[0];
return null;
}
?>
|