| @@ 429-439 (lines=11) @@ | ||
| 426 | * |
|
| 427 | * @return string |
|
| 428 | */ |
|
| 429 | public static function getName($oid) |
|
| 430 | { |
|
| 431 | $oid = (int)$oid; |
|
| 432 | $sqlquery = 'SELECT NAAM FROM ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . " WHERE ID = '{$oid}'"; |
|
| 433 | $queryresult = $GLOBALS['xoopsDB']->query($sqlquery); |
|
| 434 | while (false !== ($rowres = $GLOBALS['xoopsDB']->fetchArray($queryresult))) { |
|
| 435 | $an = stripslashes($rowres['NAAM']); |
|
| 436 | } |
|
| 437 | ||
| 438 | return $an; |
|
| 439 | } |
|
| 440 | ||
| 441 | /** |
|
| 442 | * @param $PA |
|
| @@ 463-472 (lines=10) @@ | ||
| 460 | * |
|
| 461 | * @return mixed |
|
| 462 | */ |
|
| 463 | public static function findId($naam_hond) |
|
| 464 | { |
|
| 465 | $sqlquery = 'SELECT ID from ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . " where NAAM= '$naam_hond'"; |
|
| 466 | $queryresult = $GLOBALS['xoopsDB']->query($sqlquery); |
|
| 467 | while (false !== ($rowres = $GLOBALS['xoopsDB']->fetchArray($queryresult))) { |
|
| 468 | $result = $rowres['Id']; |
|
| 469 | } |
|
| 470 | ||
| 471 | return $result; |
|
| 472 | } |
|
| 473 | ||
| 474 | /** |
|
| 475 | * @param $result |
|