View Single Post
Old January 3rd, 2007, 8:48 PM   #11 (permalink)
cowboy
Surpass Fan
Excelling Contributor
 
cowboy's Avatar
 
Joined in Nov 2005
Lives in Colorado
Hosted on DEDI
937 posts
Gave thanks: 2
Thanked 95 times
You changed your url mid-stream, originally it was ?domain= now it is ?action=. That is the variable name in $_GET[''].

So, if you want to see if the variable is found in the database, one way is:
PHP Code:
<?
connect to 
and select database
 
$compare 
$_GET['action'];
 
$sql "select domain from table where domain='".$compare."'";  // field names equal to your database setup
 
if (mysql_query($sql)) {
    echo 
"it is there in the database.";
} else {
    echo 
"that domain is not in the database.";
}
?>
__________________
Where would you be if you were at the highest court in the land (US)?
cowboy is offline   Reply With Quote
This user thanks cowboy for this great post!
panache (January 3rd, 2007)