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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filter recordsets in php 1

Status
Not open for further replies.

rizza

Programmer
Jul 16, 2002
66
US
I would like to filter a recordset through i can loop through just the filtered data. Then change my filter and loop through the recordset again.

How can this be accomplished. I know there is filter function in asp, i was having troulbe figuring it out in php though?

Any help or points in the right direction will be greatly appreciated.
 
It comes from a database....What exactly are you tring to ask???? I said filter a recordset!!! If you mean is it in an array...yes
 
I said filter a recordset!!!...I know what you said. I must have read your original post in order to have asked a question that had any bearing on your problem.

Assume for a moment that because PHP is platform agnostic, I have no idea of your runtime environment. Assume for a moment that because PHP can use specialized libraries to access data, depending on the database, that I have no idea how you are accessing your data. Assume for a moment that because I have never seen your code, I don't know what you are storing your data in or how it got there. Assume for a moment that because PHP's intrisic functions are not object-oriented, I am puzzled by your repeated mentioning of an object-oriented construct that does not exist natively in the language.

Now what is the source of your data? Is it MySQL, PostgreSQL, MS SQL, Oracle, Access?

How are you accessing that datasource? Are you using ODBC or native libraries?

How is the data getting in your array? Are you using some class, or are you using PHP's native datastructures? ______________________________________________________________________
TANSTAAFL!
 
Sorry for the obvious ignorant post. At this point i'm trying a different path.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top