Current time: 09-26-2024, 01:13 AM Hello There, Guest! (LoginRegister)


Post Reply 
[Add User] -- insert a control
Author Message
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #20
RE: [Add User] -- insert a control
ah, maybe you have to change your function...
Code:
my $dmn_egw = @$dmn_data[21];
here you already have your yes/no, so you don't need the new sql... just continue with:
Code:
if ($dmn_egw eq 'yes') {
                mkdir ('/tmp/egw_ctrl1',0777) ;
        } elsif ($dmn_egw eq 'no') {
                mkdir ('/tmp/egw_ctrl2', 0777) ;
        }

if this still does nothing you rather make

Code:
...
my $sql = "select domain_egw from domain where domain_name = $dmn_name";
($rs, $rdata) = doSQL($sql);

        if ($rdata[0][0] eq 'yes') {
                mkdir ('/tmp/egw_ctrl1',0777) ;
        } elsif ($rdata[0][0] eq 'no') {
                mkdir ('/tmp/egw_ctrl2', 0777) ;
        }

$sql will never be 'yes' or 'no' because it's "SELECT..."....
the result $rdata is a array[row][col] each starting at 0...

/J
06-13-2007 01:11 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
[Add User] -- insert a control - Ryuuku - 06-07-2007, 06:57 PM
RE: [Add User] -- insert a control - joximu - 06-13-2007 01:11 AM
RE: [Add User] -- insert a control - BeNe - 06-13-2007, 03:32 AM
RE: [Add User] -- insert a control - BeNe - 06-14-2007, 06:01 AM

Forum Jump:


User(s) browsing this thread: 5 Guest(s)