<?php
$thesite = strip_tags($_GET['s']);
$original_file = @file_get_contents($thesite);
if ($original_file === false) {
die("$thesite does not exist");
} elseif($orginial_file === true ) {
$data = $path_info['host'];
$check = mysql_query("SELECT * FROM first WHERE name='$data'");
} else {
//step3
}
I want to check the DB for $data
. If it exists, move on to the next step; if not, do step 3