Try this.
// Server login in info
$con=mysqli_connect("Host","Username","Password","Database_name");
// Check connection
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
//specify what you're trying to find
$result = mysqli_query($con,"SELECT * FROM WHERE ");
Replace with the table in you DB and replace with the variable you are trying to identify. There are a lot of ways to expand and sort queries, I recommend http://www.w3schools.com/php/php_mysql_intro.asp as an awesome source for database references.