I think the result set of PHP is the same as the recordset for ASP, both of which are a virtual table in memory, with a pointer pointing to the current record.
It's just that there's something different about them.
Php
The recordset pointer can automatically move down one after each output record, and the result set can be automatically closed
Asp
You need to manually use Rs.movenext to move the recordset pointer to the next one, and the recordset must be manually closed
The ASP has BOF and EOF properties, and PHP has no
I don't know if I understand right, I hope you can add or correct OH
Reply to discussion (solution)
Why isn't anyone interested in this post?
Recordset Recordset is a component of ADODB
Results set result is a resource number
While both represent the results of the query, they are totally different two things
But from the functional perspective, are they basically the same?
The two resource types are different, but the same functionality is implemented
PHP Mysql_fetch_array, is the mobile
Refer to the following code
$result = mysql_query ("Select ID, name from mytable");
while ($row = Mysql_fetch_array ($result, mysql_num)) {
printf ("ID:%s Name:%s", $row [0], $row [1]);
}
But from the functional perspective, are they basically the same?
From the functional perspective, basically the same. are looping through the result set data.