funeralcrasher: (Default)
Say I have an object called ListStudents which queries a database for all known students. My first (procedural) impulse is to loop through the dataset and store each row in pre-formatted html rows. But something tells me there is a better way of handling it with OOP. Can someone help me?

Date: 2006-07-28 03:28 pm (UTC)From: [identity profile] bedivere.livejournal.com
Oh... I see you're using PHP. Which I don't use.. but this article seems to get at what I was saying:

http://www.devarticles.com/c/a/PHP/Code-10x-More-Efficiently-Using-Data-Access-Objects-Part-1/

Profile

funeralcrasher: (Default)
funeralcrasher

June 2020

S M T W T F S
 123456
78910111213
141516 1718 1920
21222324252627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 28th, 2025 06:00 pm
Powered by Dreamwidth Studios