“Lazyloading” information from a database on a PHP page in p

I know proper lazy loading usually requires using objects and a proxy pattern. I’m not there yet as a site needs some redesign. However, is there any way I can still spool out DB data to a page...