I dropped the code in htdocs folder of MAMP.
When I run the server it navigated me to
which open into form to fill database and smpt details.
Created a database called prime give the same details there . on click of finish it is giving an error
Failed to load resource: the server responded with a status of 500 (Internal Server Error) - allDetails.php