<?php
$strServer="localhost";   
$strDatabase="Rainfall"; 
$strUser="root";    
$strPwd="";    

$link=mysqli_connect($strServer,$strUser,$strPwd,$strDatabase)or die("Could not open database");
?>