ID:               36117
 Updated by:       [EMAIL PROTECTED]
 Reported By:      alejosimon at yahoo dot com dot ar
-Status:           Feedback
+Status:           Bogus
 Bug Type:         SQLite related
 Operating System: Win 2k3
 PHP Version:      5.1.2
 New Comment:

Feel free to reopen when you have a decent description and reproduce
code.


Previous Comments:
------------------------------------------------------------------------

[2006-01-22 06:22:42] judas dot iscariote at gmail dot com

Tony : I speak Spanish :-)

He is trying to say, that the code above is getting into an infinite
loop, however I think this bug is quite bogus.

to the OP:
you should read some tutorial like
http://www.zend.com/php/beginners/php101-9.php

http://www.zend.com/php5/articles/php5-sqlite.php

and use sqlite extension in the Object oriented way. or even better,
use pdo_sqlite.
 

if one of the suggested examples crashes for you please reopen this
bug.

------------------------------------------------------------------------

[2006-01-21 22:39:04] [EMAIL PROTECTED]

And try to describe the problem.

------------------------------------------------------------------------

[2006-01-21 22:38:15] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.



------------------------------------------------------------------------

[2006-01-21 22:25:04] alejosimon at yahoo dot com dot ar

SORRY 2 :) !!!

all functions with prfix "db_" are equivalent to "sqlite_" functions.
Rewrite the code.


$db_res = sqlite_query( $db, " SELECT * FROM clientes " ) ;

while ( $db_reg = sqlite_fetch_array( $db_res ) ) {

   echo "1ro: " . $db_reg['cliente'] . "<br>" ;

   sqlite_next( $db_res ) ;
   $db_reg = sqlite_current( $db_res ) ;

   echo "2do: " . $db_reg['cliente'] . "<br>" ;

   sqlite_prev( $db_res ) ; // aca esta el problema.

}

------------------------------------------------------------------------

[2006-01-21 22:20:57] alejosimon at yahoo dot com dot ar

Sorry!!! :(

... but please! run this php code and view the problem.

thanks!

------------------------------------------------------------------------

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/36117

-- 
Edit this bug report at http://bugs.php.net/?id=36117&edit=1

Reply via email to