Skip to content

Instantly share code, notes, and snippets.

View PortionLK's full-sized avatar

Janaka Rajapaksha PortionLK

View GitHub Profile
<?php
$host = "localhost"; //Your database host server
$db = "..."; //Your database name
$user = "..."; //Your database user
$pass = "..."; //Your password
$connection = mysql_connect($host, $user, $pass);
if(!$connection){
die("Database server connection failed.");