Hello, i wanted to know what you guys use with PDO.

Do you use ->fetchAll() or ->fetch() + while

based on some reading i have done, it seems that PDO->fetchAll() is faster but uses more momory...

You are correct. For displaying I use fetchAll. If I need additional processing, I use the while.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.