Fixed bug #552486 - row count starts at 1?
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2002-05-08 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||||
|
* lang/english.inc.php3; lang/french.inc.php3;
|
||||||
|
libraries/build_dump.lib.php3: fixed bug #552486 - row count starts at 1?
|
||||||
|
|
||||||
2002-05-07 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
2002-05-07 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||||
* tbl_relation.php3; libraries/display_tbl.lib.php3: added backquotes and
|
* tbl_relation.php3; libraries/display_tbl.lib.php3: added backquotes and
|
||||||
slashed some values.
|
slashed some values.
|
||||||
|
@@ -105,7 +105,7 @@ $strDrop = 'Drop';
|
|||||||
$strDropDB = 'Drop database %s';
|
$strDropDB = 'Drop database %s';
|
||||||
$strDropTable = 'Drop table';
|
$strDropTable = 'Drop table';
|
||||||
$strDumpingData = 'Dumping data for table';
|
$strDumpingData = 'Dumping data for table';
|
||||||
$strDumpXRows = 'Dump %s rows starting at row %s.';
|
$strDumpXRows = 'Dump %s row(s) starting at record # %s.';
|
||||||
$strDynamic = 'dynamic';
|
$strDynamic = 'dynamic';
|
||||||
|
|
||||||
$strEdit = 'Edit';
|
$strEdit = 'Edit';
|
||||||
@@ -267,7 +267,7 @@ $strRevokeMessage = 'You have revoked the privileges for %s';
|
|||||||
$strRevokePriv = 'Revoke Privileges';
|
$strRevokePriv = 'Revoke Privileges';
|
||||||
$strRowLength = 'Row length';
|
$strRowLength = 'Row length';
|
||||||
$strRows = 'Rows';
|
$strRows = 'Rows';
|
||||||
$strRowsFrom = 'rows starting from';
|
$strRowsFrom = 'row(s) starting from record #';
|
||||||
$strRowSize = ' Row size ';
|
$strRowSize = ' Row size ';
|
||||||
$strRowsModeHorizontal = 'horizontal';
|
$strRowsModeHorizontal = 'horizontal';
|
||||||
$strRowsModeOptions = 'in %s mode and repeat headers after %s cells';
|
$strRowsModeOptions = 'in %s mode and repeat headers after %s cells';
|
||||||
|
@@ -105,7 +105,7 @@ $strDrop = 'Supprimer';
|
|||||||
$strDropDB = 'Supprimer la base %s';
|
$strDropDB = 'Supprimer la base %s';
|
||||||
$strDropTable = 'Supprimer la table';
|
$strDropTable = 'Supprimer la table';
|
||||||
$strDumpingData = 'Contenu de la table';
|
$strDumpingData = 'Contenu de la table';
|
||||||
$strDumpXRows = 'Exporte %s enregistrements <20> partir du rang %s.';
|
$strDumpXRows = 'Exporte %s enregistrement(s) <20> partir du rang n<> %s.';
|
||||||
$strDynamic = 'dynamique';
|
$strDynamic = 'dynamique';
|
||||||
|
|
||||||
$strEdit = 'Modifier';
|
$strEdit = 'Modifier';
|
||||||
@@ -267,7 +267,7 @@ $strRevokeMessage = 'Vous avez r
|
|||||||
$strRevokePriv = 'R<>voquer les privil<69>ges';
|
$strRevokePriv = 'R<>voquer les privil<69>ges';
|
||||||
$strRowLength = 'Longueur enr.';
|
$strRowLength = 'Longueur enr.';
|
||||||
$strRows = 'Enregistrements';
|
$strRows = 'Enregistrements';
|
||||||
$strRowsFrom = 'lignes <20> partir de';
|
$strRowsFrom = 'ligne(s) <20> partir de l\'enregistrement n<>';
|
||||||
$strRowSize = ' Taille enr. ';
|
$strRowSize = ' Taille enr. ';
|
||||||
$strRowsModeHorizontal= 'horizontal';
|
$strRowsModeHorizontal= 'horizontal';
|
||||||
$strRowsModeOptions= 'en mode %s et r<>p<EFBFBD>ter les en-t<>tes <20> chaque groupe de %s';
|
$strRowsModeOptions= 'en mode %s et r<>p<EFBFBD>ter les en-t<>tes <20> chaque groupe de %s';
|
||||||
|
@@ -418,13 +418,10 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){
|
|||||||
function PMA_getTableContent($db, $table, $limit_from = 0, $limit_to = 0, $handler, $error_url)
|
function PMA_getTableContent($db, $table, $limit_from = 0, $limit_to = 0, $handler, $error_url)
|
||||||
{
|
{
|
||||||
// Defines the offsets to use
|
// Defines the offsets to use
|
||||||
if ($limit_from > 0) {
|
|
||||||
$limit_from--;
|
|
||||||
} else {
|
|
||||||
$limit_from = 0;
|
|
||||||
}
|
|
||||||
if ($limit_to > 0 && $limit_from >= 0) {
|
if ($limit_to > 0 && $limit_from >= 0) {
|
||||||
$add_query = " LIMIT $limit_from, $limit_to";
|
$add_query = ' LIMIT '
|
||||||
|
. (($limit_from > 0) ? $limit_from . ', ' : '')
|
||||||
|
. $limit_to;
|
||||||
} else {
|
} else {
|
||||||
$add_query = '';
|
$add_query = '';
|
||||||
}
|
}
|
||||||
@@ -494,13 +491,10 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Defines the offsets to use
|
// Defines the offsets to use
|
||||||
if ($limit_from > 0) {
|
|
||||||
$limit_from--;
|
|
||||||
} else {
|
|
||||||
$limit_from = 0;
|
|
||||||
}
|
|
||||||
if ($limit_to > 0 && $limit_from >= 0) {
|
if ($limit_to > 0 && $limit_from >= 0) {
|
||||||
$add_query = " LIMIT $limit_from, $limit_to";
|
$add_query = ' LIMIT '
|
||||||
|
. (($limit_from > 0) ? $limit_from . ', ' : '')
|
||||||
|
. $limit_to;
|
||||||
} else {
|
} else {
|
||||||
$add_query = '';
|
$add_query = '';
|
||||||
}
|
}
|
||||||
@@ -581,13 +575,10 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){
|
|||||||
mysql_free_result($result);
|
mysql_free_result($result);
|
||||||
|
|
||||||
// Defines the offsets to use
|
// Defines the offsets to use
|
||||||
if ($limit_from > 0) {
|
|
||||||
$limit_from--;
|
|
||||||
} else {
|
|
||||||
$limit_from = 0;
|
|
||||||
}
|
|
||||||
if ($limit_to > 0 && $limit_from >= 0) {
|
if ($limit_to > 0 && $limit_from >= 0) {
|
||||||
$add_query = " LIMIT $limit_from, $limit_to";
|
$add_query = ' LIMIT '
|
||||||
|
. (($limit_from > 0) ? $limit_from . ', ' : '')
|
||||||
|
. $limit_to;
|
||||||
} else {
|
} else {
|
||||||
$add_query = '';
|
$add_query = '';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user