PDA

View Full Version : select data from db with forum permission active


TitanKing
07-07-2005, 12:13 PM
Hello everyone, I hope I wont be to unclear about this, I need help desperatly, I need to take out info from say the thread table but with the forum permision still active. What I mean is say for instance I use the

$DB_site->query_first( "SELECT title FROM vb3_thread WHERE threadid = "10");

Ok fine this is easy right, however how would I apply that only if the person has proper forum permision he would be able to view the title of say id 10...

I hope anyone has some info for me, I would appreciate it very very much !

Andreas
07-07-2005, 12:16 PM
Easiest way:
Require global.php and check $permissions['forumpermissions'][Forumid]

TitanKing
07-07-2005, 12:26 PM
Wow thanks for the ultra fast reply, dude I own you one ! Thank you...

$permissions['forumpermissions'][Forumid] , why is the last [Forumid] there, its just the syntax doesnt look right... am I mistaking [Forumid] can be [27] for example...