This is the code where I am constantly getting an error. The same include file works on the other pages, I am only getting problem on this page. Here is the error 

Warning: mysql\_select\_db(): supplied argument is not a valid MySQL-Link resource in /var/www/html/spywgc/adm/ctshell/getproduct/getproduct.php on line 18

And here is the actual code : 

```
<?php require_once('../../../Connections/spyware_adm.php'); ?>
<?php require_once('../../../includes/lib_gen.php'); ?>

<?php
//function for returing status of website
function Visit($url)
{
    echo $url;
    mysql_select_db($database_spyware, $spyware) || die(mysql_error());
    $select_url= "select product_id from sp_url where url like '%{$url}%'";
    echo $select_url;
    $run_url= mysql_query($select_url, $spyware);
    $result_descr = mysql_fetch_assoc($run_url);
    echo $result_descr;
    return $result_descr;

}
?>

```