Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I want to display data from a mysql database.
Thats no problem but i want to hide some fields for some users.
I understand i have to use userlevels for that.
But to implement it in dreamweaver is the problem
When i try to use a var there is nothing displayed at all

<?php echo $row_DetailRS1['Off_soort_2']; ?>

is the code line, it is a part of a master/detail page.
this data should only be displayed on certain userlever (1-99) else no

please help me i'am  newbie

Re: userlevels

*** birdy wrote/escribiˇ (Mon, 27 Jun 2005 13:24:03 +0200):
Quoted text here. Click to load it

I'm afraid your question is not PHP-related but Dreamweaver related.
Userlevels is probably a tool provided by your editor, it doesn't exist as
such in PHP or MySQL.

As about a pure PHP solution, it'd be something like this:

    case 'admin':
        $sql='SELECT foo, bar, blah FROM table';
    case 'moderator':
        $sql='SELECT foo, bar FROM table';
    case 'user':
        $sql='SELECT foo FROM table';
        die('Error: Not logged');

However, I can't tell you how to implement it in Dreamweaver.

-- ┴lvaro G. Vicario - Burgos, Spain
-- - Mi sitio sobre programaciˇn web
-- Don't e-mail me your questions, post them to the group

Site Timeline