Parašė Lordcraft· 2010 Rugp. 11 18:08:46
#1
Noriu pasidaryti kad kai uzbaninu nary ant laiko prisidetu user_status 4 o paprastai kai visam laikui, tai liktu user_status 1. kaip reikia padaryti koda maincorej kad neileistu nariu su user_status 4 ?
} elseif ($data['user_status'] == 1) {
redirect(BASEDIR."setuser.php?error=1", "script");
} elseif ($data['user_status'] == 2) {
redirect(BASEDIR."setuser.php?error=2", "script");
kazkaip reikia prideti $data['user_status'] == 1
AND 4 ar kaip?
ir kaip poto reiketu atlikti db count kad skaiciuotu banus is to statuso ir is to?
".dbcount("(user_id)", "users", "user_status='1'" OR "user_status='4'")." taip?
Redagavo Lordcraft· 2010 Rugp. 11 19:08:36
Parašė Narysx· 2010 Rugp. 11 20:08:31
#3
} elseif ($data['user_status'] == 1) {
redirect(BASEDIR."setuser.php?error=1", "script");
} elseif ($data['user_status'] == 2) {
redirect(BASEDIR."setuser.php?error=2", "script");
} elseif ($data['user_status'] == 4) {
redirect(BASEDIR."setuser.php?error=2", "script");
Jei teisingai supratau. :?
Parašė Lordcraft· 2010 Rugp. 15 01:08:49
#4
nea as turejau omeny kad: } elseif ($data['user_status'] == 1 || $data['user_status'] == 4) {