<?php

    $dsn = 'mysql:host=localhost;dbname=galaxy_solution';

    $user = 'root';

    $pass='';

    $option=array(

        PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8",

    );

    try{

        $con = new PDO($dsn,$user,$pass,$option);

        $con->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);

    }

    catch(PDOException $e){

        echo 'Your are not Connected !!!' . $e->getMessage();

    }

