Solved

restrict non logged in users for viewing particular mysql columns

Posted on 2011-09-15
3
295 Views
Last Modified: 2012-05-12
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
0
Comment
Question by:encodeme
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 125 total points
ID: 36545201
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
 

Author Closing Comment

by:encodeme
ID: 36545513
I'll have a play around with that.
Thanks for the direction.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 36546394
You're welcome.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating and Managing Databases with phpMyAdmin in cPanel.
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question