I recommend you visit the site you mentioned here, and use VIEW SOURCE.
From there you can study, learn, practice, experiment with a text editor and a browser (in whatever Operating System you wish).
I know the site is not something great , but I need to know how to build a data driven website like that .If I read up PHY/MySQL bible or Kevin Yanks book , will that sufffice ?