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...
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.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.