Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php and dreamweaver 1

Status
Not open for further replies.

pugs421

Technical User
Joined
Nov 25, 2002
Messages
114
Location
US
I'm reading a book on php that has nothing to do with dreamweaver. It's just teaching code. As I'm reading I'm think wow dreamweaver automates most of this. But when I look at the code dreamweaver produces I get a little confused. Dreamweaver uses recordsets to pull information out of database. In relation to php, what is a recordset considered. an array?
 
It's considered a recordest. If you tried to just print it, you would get the output of

Resource id

You cannot access it as an array, rather you need to access it with special functions... for example if it were a recordset from a mySQL database you would use

mysql_fetch_assoc(); or mysql_fetch_row();


To get a row.

Logically, recordsets are similar to arrays of arrays.

-Rob
 
More accurately, the resource handles used by PHP's database access functions are more closely related to file handles than anything.

The resource handle does not store the data -- it just provides information as to how PHP can get to the data.

Want the best answers? Ask the best questions: TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top