ID: 29180
User updated by: tila at home dot nl
Reported By: tila at home dot nl
Status: Open
Bug Type: PostgreSQL related
Operating System: Linux 2.4.24
PHP Version: 5.0.4-pre
New Comment:
When I add a line in the script so that it reads:
<?php
$db = pg_connect("host=localhost user=apache password=apache
dbname=groupware");$QUERY = "SELECT o.* FROM personoverview o";
$result = pg_exec($QUERY);
$total = pg_numrows($result);
$offset = $_GET['id']?$_GET['id']:0;
$temp_offset = $offset
$perpage = 10;
for ($i = $offset; (($i < $total) && ($i < ($offset + $perpage)));
$i++)
{
$row = pg_fetch_row($result, $i);
}
echo $offset;
?>
The result will display 5. Strange
Previous Comments:
------------------------------------------------------------------------
[2004-12-29 23:54:25] tila at home dot nl
php5-STABLE-200412231730
tried this one, it still returns 42, can I do something else to help
you solve it, with some debugger or so?
------------------------------------------------------------------------
[2004-12-29 21:27:44] [EMAIL PROTECTED]
Mark it as waiting for feedback until you have additional info.
------------------------------------------------------------------------
[2004-12-29 20:42:11] tila at home dot nl
I have been away for some time, So still have to try, will let you know
if it works now. The 5.0.3 version still have some problems with it.
------------------------------------------------------------------------
[2004-12-29 18:32:17] [EMAIL PROTECTED]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2004-12-22 09:19:41] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/29180
--
Edit this bug report at http://bugs.php.net/?id=29180&edit=1