CREATE TABLE commands (
id int unsigned not null auto_increment primary key,
command varchar(40) not null,
lvl tinyint unsigned not null default '1',
parse text not null,
extra text not null
);CREATE TABLE users (
id bigint unsigned not null auto_increment primary key,
bot varchar(80) not null,
email varchar(80) not null,
lvl tinyint unsigned not null default '1',
nickname text not null,
first_conv datetime not null
);en heb deze sql query:
mysql_query("SELECT t1.parse, t1.extra FROM commands AS t1, users AS t2 WHERE t1.command = '[".mysql_real_escape_string($match1[1])."]' AND t2.lvl >= t1.lvl") or $this->SQL_error(mysql_error());op het laatste stukje zou die moeten bepalen of mijn user lvl hoog genoeg is om de command te kunnen gebruiken maar dit werkt niet helemaal goed..
want ik heb nu 2 commands 1 met lvl 1 en 1 met lvl 2 en ik ken ze nu niet allebei gebruiken:S
Ikzelf heb als user lvl 2
Iemand weer een oplossing?(A)
Als je meer moet weten vraag het dan maar:)
GR. mebus