By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,962 Members | 2,036 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,962 IT Pros & Developers. It's quick & easy.

Is there a PHP cursor?

P: 13
Good day to all,

I just wanted to ask if there is an equivalent of Oracle's Cursor in PHP?
Does anyone here know how to create a cursor in PHP?

Thank you in Advance.
Nov 7 '07 #1
Share this Question
Share on Google+
3 Replies


pbmods
Expert 5K+
P: 5,821
Heya, Ghe.

You mean a PostgreSQL cursor? PHP is not a database engine.
Nov 7 '07 #2

P: 13
ghe
Ahm, yup, PHP is not a database engine, but it offers some functions that is use to run PostgreSQL codes, such as pg_query, pg_connect, pg_copy_from, etc.

I think the function, pg_query() is 1 of the solutions that can be use in the creating a Oracle's Cursor-like in PHP. I'm not sure, but, the pg_query() returns a result set base from the pgsql code that is being passed to it. So maybe the returned result set of pg_query() can be use as a cursor.
Nov 8 '07 #3

Atli
Expert 5K+
P: 5,058
Hi.

If you are looking for Oracle like cursors in PHP, you may want to check out the Oracle Functions, specifically the oci_new_cursor function.
Nov 9 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.