PDO: how to populate html table with rows from database table?

Any idea how would a pdo query affect that?
@spaceshiptrooper to give the back-story on this one, the OP was previously struggling with a mysql script. We seem to have talked him round to using pdo instead as learning mysql would be a waste of time.
Could it be the server does not have pdo enabled? Would that cause a server error? Perhaps try mysqli?