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. 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. 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? 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 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.. 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
Archived
This topic is now archived and is closed to further replies.