gitlab_medici/old/html/inc/functions-help.php @ fd45c217
1 |
<?php
|
---|---|
2 |
|
3 |
function get_count_lines() { |
4 |
@$connection = Pg_Connect ("user=dbowner dbname=obtc"); |
5 |
if (!$connection) { |
6 |
return "85 000"; |
7 |
}
|
8 |
else { |
9 |
$lines = pg_query($connection, "select count(*) from line"); |
10 |
List($count) = pg_fetch_row($lines, 0, PGSQL_NUM); |
11 |
return $count; |
12 |
}
|
13 |
}
|
14 |
|
15 |
|
16 |
?>
|