<?php
$host = "yourhost";
$user = "your_user";
$password = "your_user";
$db_name = "db_name";
//Array to store validation errors
$errmsg_arr = array();
//Validation error flag
$errflag = false;
$connect = mysql_connect($host,$user,$password);
if (!$connect){
die('could not...