Mysql query doing nothing ?
#9

Can't connect to host error

#sidenote:

pawn Код:
if(mysql_ping()) {
    print("Connection to database successful.");
} else if (!mysql_ping()) {
    print("Connection to database failed.");
} else {
    print("Unknown error!");
}
Boolean can have 2 states only: true, or false. So in fact you are doing something like
pawn Код:
if(true) { print("Cool"); }
else if(false) { print("NotCool"); }
else { printf("This will never happen"); }
Reply


Messages In This Thread
Mysql query doing nothing ? - by Dotayuri - 25.02.2013, 17:49
Re: Mysql query doing nothing ? - by InfiniTy. - 25.02.2013, 17:53
Re: Mysql query doing nothing ? - by Dotayuri - 25.02.2013, 18:00
Re: Mysql query doing nothing ? - by InfiniTy. - 25.02.2013, 18:01
Re: Mysql query doing nothing ? - by Dotayuri - 25.02.2013, 18:07
Re: Mysql query doing nothing ? - by Dotayuri - 25.02.2013, 18:25
Re: Mysql query doing nothing ? - by InfiniTy. - 25.02.2013, 18:41
Re: Mysql query doing nothing ? - by Dotayuri - 25.02.2013, 18:55
Re: Mysql query doing nothing ? - by Misiur - 25.02.2013, 18:59
Re: Mysql query doing nothing ? - by Dotayuri - 25.02.2013, 19:10

Forum Jump:


Users browsing this thread: 2 Guest(s)