Do you have a question? Post it now! No Registration Necessary. Now with pictures!
June 27, 2005, 6:24 pm
rate this thread
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
*** birdy wrote/escribió (Mon, 27 Jun 2005 13:24:03 +0200):
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:
$sql='SELECT foo, bar, blah FROM table';
$sql='SELECT foo, bar FROM table';
$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
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group