|
|
#1 (permalink) |
|
Surpass Fan
Excelling Contributor
Joined in Dec 2005
Lives in my computer
Hosted on pass86'd
660 posts
Gave thanks: 56
Thanked 14 times
|
got a question..
I am trying to code something where I have the software call out to a remote server and get an answer using functions, actions, and a mysql db, how can I do this, and where can I go for insight on how to do this?
MJ |
|
|
|
|
|
#2 (permalink) |
|
minor deity
Super #1
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
|
__________________
Proud to be a Surmunity Mod! XEON Make a fundamental difference! My Sites: Curious about Brewing Beer? Join the community! >>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax Get into an Art museum Victorian London It's your brain -ON WEB - mybrainhost.com (under development) What SHOULD Government do? Much Less than it Does! |
|
|
|
|
|
#3 (permalink) |
|
Surpass Fan
Excelling Contributor
Joined in Dec 2005
Lives in my computer
Hosted on pass86'd
660 posts
Gave thanks: 56
Thanked 14 times
|
ok went there and did not find anything useful..
basicly what I want to do is have it so if $array == 'www.bob.com' then echo 1 else 0. and I am wanting to call this from a database so it searches the database for the domain and if it finds it then display a 1 if not a 0. |
|
|
|
|
|
#4 (permalink) |
|
minor deity
Super #1
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
|
Hmm.
a better description of what exactly you're trying to do might help.
__________________
Proud to be a Surmunity Mod! XEON Make a fundamental difference! My Sites: Curious about Brewing Beer? Join the community! >>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax Get into an Art museum Victorian London It's your brain -ON WEB - mybrainhost.com (under development) What SHOULD Government do? Much Less than it Does! |
|
|
|
|
|
#5 (permalink) |
|
Surpass Fan
Excelling Contributor
Joined in Dec 2005
Lives in my computer
Hosted on pass86'd
660 posts
Gave thanks: 56
Thanked 14 times
|
Code:
<?
$domain="www.themaxfiles.info";
if ($action = "www.themaxfiles.info") {
echo "1";
}
else { echo "0"; }
?>
also I want to be able to use a database to check against the domain in the database.. index.php?domain=www.themaxfiles.info < the domain there is what I Want to check against the database either I am clueless on this or I have no idea how to program.. |
|
|
|
|
|
#6 (permalink) | |
|
Surpass Fan
Excelling Contributor
Joined in Nov 2005
Lives in Colorado
Hosted on DEDI
937 posts
Gave thanks: 2
Thanked 95 times
|
Quote:
$domain = $_GET['domain']; Then you can compare $domain from your database query using an if() statement.
__________________
Where would you be if you were at the highest court in the land (US)? |
|
|
|
|
|
|
#7 (permalink) |
|
minor deity
Super #1
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
|
Hey cowboy! Have a bubble bath lately?
Panache - Listen to this man. Also, check out php.net for cool examples of php commands and their use.
__________________
Proud to be a Surmunity Mod! XEON Make a fundamental difference! My Sites: Curious about Brewing Beer? Join the community! >>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax Get into an Art museum Victorian London It's your brain -ON WEB - mybrainhost.com (under development) What SHOULD Government do? Much Less than it Does! |
|
|
|
| This user thanks Bigjohn for this great post! | panache (January 4th, 2007) |
|
|
#9 (permalink) | |
|
Surpass Fan
Excelling Contributor
Joined in Nov 2005
Lives in Colorado
Hosted on DEDI
937 posts
Gave thanks: 2
Thanked 95 times
|
Quote:
If you want to compare You need at least two things to compare. Lets assume you have $action defined as the domain to compare (like from your database) and pass the variable in your example, then: PHP Code:
__________________
Where would you be if you were at the highest court in the land (US)? |
|
|
|
|
| These users thank cowboy for this great post! | GamingHybrid (January 8th, 2007), panache (January 3rd, 2007) |