icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old January 4th, 2007, 3:36 PM   #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..
panache is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 4th, 2007, 4:21 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;
}
Thanks a bunch... we just simply programmed what Accountlab pro uses for verification of domains for their software

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
__________________

panache is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 9th, 2007, 1:11 AM   #21 (permalink)
Registered User
Comfy Contributor
 
Joined in Jun 2006
106 posts
Gave thanks: 5
Thanked 1 Time in 1 Post
i was gonna say, i don't know if giving a variable the name 'action' will affect the code or not.
Savesheep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 9th, 2007, 3:30 PM   #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
__________________

panache is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On