ghe Posted November 7, 2007 Share Posted November 7, 2007 In Oracle, you can declare a variable as a cursor, this is used in retrieving data from a table. Cursor variables can hold a field in a specified column or can hold the entire row of a table. Does PHP also have a Cursor? or if not, does anyone here know how to create a Cursor in PHP? Hope to have some help from someone. Thank you in advance. Quote Link to comment https://forums.phpfreaks.com/topic/76321-solved-is-there-a-php-cursor/ Share on other sites More sharing options...
rajivgonsalves Posted November 7, 2007 Share Posted November 7, 2007 I think the result set return by mysql_query, sybase_query, oci_query can be considered as a cursor. Quote Link to comment https://forums.phpfreaks.com/topic/76321-solved-is-there-a-php-cursor/#findComment-386423 Share on other sites More sharing options...
ghe Posted November 7, 2007 Author Share Posted November 7, 2007 Really? so it means, in PHP, we dont need Cursors anymore unlike in Oracle? Quote Link to comment https://forums.phpfreaks.com/topic/76321-solved-is-there-a-php-cursor/#findComment-386429 Share on other sites More sharing options...
rajivgonsalves Posted November 7, 2007 Share Posted November 7, 2007 well if you just want to run through a table or a query and do something with the data. give you the same functionality Quote Link to comment https://forums.phpfreaks.com/topic/76321-solved-is-there-a-php-cursor/#findComment-386443 Share on other sites More sharing options...
ghe Posted November 7, 2007 Author Share Posted November 7, 2007 oh, i see... ahm, thank you very much for the help.. Quote Link to comment https://forums.phpfreaks.com/topic/76321-solved-is-there-a-php-cursor/#findComment-386526 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.