connectiing to database

Hi, I’ve set up a database DB NAME_egypt and have added data to it. What I need to do is connect to the database so I can add the data. I use offline server for testing so I know about include(), and its other versions, but do not know how to use this online.