Thousands and decimal separators are now language dependant
This commit is contained in:
@@ -17,8 +17,9 @@ $Source$
|
|||||||
language dependant.
|
language dependant.
|
||||||
* tbl_properties.inc.php3: removed an unnecessary php closing tag and
|
* tbl_properties.inc.php3: removed an unnecessary php closing tag and
|
||||||
commited some cosmetic changes.
|
commited some cosmetic changes.
|
||||||
* lib.inc.php3, lines 946-950; db_details.php3, lines 96 & 118; language
|
* lib.inc.php3, lines 706 & 946-950; db_details.php3, lines 96 & 118;
|
||||||
files: thousands and decimal separators are now language dependant.
|
language files: thousands and decimal separators are now language
|
||||||
|
dependant.
|
||||||
* tbl_dump.php3, lines 78: Added a '#' before 'No tables found' so the
|
* tbl_dump.php3, lines 78: Added a '#' before 'No tables found' so the
|
||||||
generated dump file may be imported later even if there is no table.
|
generated dump file may be imported later even if there is no table.
|
||||||
* db_printview.php3, line 29: Cosmetic change in column case name.
|
* db_printview.php3, line 29: Cosmetic change in column case name.
|
||||||
|
@@ -699,12 +699,11 @@ function get_table_content_old($db, $table, $handler)
|
|||||||
return (true);
|
return (true);
|
||||||
}
|
}
|
||||||
|
|
||||||
function count_records ($db,$table)
|
function count_records($db, $table)
|
||||||
{
|
{
|
||||||
$result = mysql_query("select count(*) as num from ".db_name($db)."." .
|
$result = mysql_query('select count(*) as num from ' . db_name($db) . '.' . tbl_name($table));
|
||||||
tbl_name($table));
|
$num = mysql_result($result,0,"num");
|
||||||
$num = mysql_result($result,0,"num");
|
echo number_format($num, 0, $GLOBALS['number_decimal_separator'], $GLOBALS['number_thousands_separator']);
|
||||||
echo $num;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the content of $table as a CSV output.
|
// Get the content of $table as a CSV output.
|
||||||
|
Reference in New Issue
Block a user