To be honest, if your intention is to have 3 columns within a div, id use a floating technique to do it and avoid having to use absolute positioning. Depends what you want to do and/or the requirements.
In relation to dynamically generating html using php, not a clue

. PHP is still very much a gray area for me.
Regards,
LC.