php mysql check db first  
        <?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

}


basically..i want it to check the db for $data and if it exists move on to the next step...if not do step 3
php mysql check db first  
===

        <?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

}


basically..i want it to check the db for $data and if it exists move on to the next step...if not do step 3