restrict non logged in users for viewing particular mysql columns

Hi,
has anybody tried ..or got a solution in order to restrict a non logged in user from viewing a particular db column which happens to be a link to a file.

i.e. non logged in users can view the rest of the table columns output, but not the one which has a link to a file.
The users are going through a php interface.

I've got the usual in place, session, login in/out etc.
thanks
encodemeAsked:
Who is Participating?
 
Dave BaldwinFixer of ProblemsCommented:
There is no generic solution to that, you have to implement it on each page that you have that display.  Something like:

if($loggedin) echo $row['restricted'];
0
 
encodemeAuthor Commented:
I'll have a play around with that.
Thanks for the direction.
0
 
Dave BaldwinFixer of ProblemsCommented:
You're welcome.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.