see the learning resources page:
resources.php?utm_campaign=Forum_header&utm_medium=Forums&utm_source=WebAssistForums
for tutorias on defining a dynamic site and defining a database connection.
once you have defined a dynamic site, go to File -> New to create a new file, select the option to create a php file, then save it to your site.