Judging from the code you have written you have defined your database and 2 tables. The coded that you will generate when you input data and extract data from these tables can be placed any where eg. embedded into html files etc. Read some articles on this website - thats how I have been learning. Good luck!