|
|
#19 (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 checked it, cleared my cache and rebooted browser and now its working...
but the other thing is if there is no action it should also be either blank or say its not in the db, hmm.. an elseif statement.. Last edited by panache; January 4th, 2007 at 3:40 PM.. |
|
|
|
|
|
#20 (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:
$zero = "0";
$one = "1";
$compare = $_GET['domain'];
$sql = "select domain from hlsremote where domain='".$compare."'";
$result = mysql_fetch_array(mysql_query($sql));
if ($result['domain'] == NULL OR empty ($result['domain'])) {
echo $zero; }
elseif ($result['domain'] == $compare) {
echo "$one";}
else {
echo $zero;
}
http://netenberg.com/files/ALPdomain/index.php < =0 http://netenberg.com/files/ALPdomain...panacheweb.net < =1 http://netenberg.com/files/ALPdomain...emaxfiles.info = 0 although I am sure they have a script on there end that compares the date that was put into the db and if older then a year to remove that domain.. MJ |
|
|
|
|
|
#22 (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
|
actually its a if then else statement in php...
if this = 1 then echo " which is the login form and continue as normal... if not display this over here... and yes I have written a slice of code that is locked to my ip address at the moment.. all it says is: This file is a secured document, but while inside, I can control actions in my database, and list whats in the database and so forth... I am working on layout of this, but yes, thats what ALP does do with their code is a big if then else and encode it using zend so you can not get around it.. thanks go cowboy for getting me on the right track with If then else... I damned near got this under raps...:p but yes you can control program details of how things work... using if then else... its exactly how login forms work on software if this = this then do this if not then do that... its simple now that I got it figured out.. the catch is if then else is alot different in php then it is in basic programming... that is where my hangup in thinking on this was.. now I got how it all works abit better... Now I know exactly what I am doing with all this, so it should be all good.. MJ |
|
|
|