print '0' instead of '' if result count < SelectNumRows

This commit is contained in:
Steve Alberty
2001-07-16 13:47:08 +00:00
parent c2bb2c3eae
commit a4d1254c3a
2 changed files with 6 additions and 1 deletions

View File

@@ -6,6 +6,11 @@ $Id$
$Source$
2001-07-16 Steve Alberty <alberty@neptunlabs.de>
* tbl_changes.php3: make it possible to edit empty binary fields
* tbl_properties.php3: disable nowrap on enum and set <td>'s
* lib.inc.php3: print '0' instead of '' if result count < SelectNumRows
2001-07-15 Marc Delisle <lem9@users.sourceforge.net>
* small patch from vinay and girish @sanisoft.com:
db_details.php3: new checkbox for optional re-display of query

View File

@@ -67,7 +67,7 @@ function show_table_navigation($pos_next, $pos_prev, $dt_result) {
>
<input type="text" name="sessionMaxRows" size="3" value="<?php echo $sessionMaxRows ; ?>">
<?php echo $strRowsFrom ?> <input name="pos" type="text" size="3"
value="<?php echo ( $pos_next >= $SelectNumRows ? '' : $pos_next ) ; ?>">
value="<?php echo ( $pos_next >= $SelectNumRows ? '0' : $pos_next ) ; ?>">
</form>
</td></tr></table>
</td>