Solved

HTML Table with an Admin and a User view

Posted on 2014-09-08
2
158 Views
Last Modified: 2014-09-09
I need to build a table but restrict parts of that table to me only for viewing certain data.  Here is a video showing the builder I am using at www.tablegenerator.com and the syntax used is pasted below http://screencast.com/t/pnwAbjzFsrt.

<style type="text/css">
.tg  {border-collapse:collapse;border-spacing:0;}
.tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;}
.tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;}
</style>
<table class="tg">
  <tr>
    <th class="tg-031e"></th>
  </tr>
</table>

Open in new window


Assistance is greatly appreciated.
0
Comment
Question by:frugalmule
2 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40309308
HTML is not capable of doing that because it is not a programming language, merely a page description language.  A server side language like ASP or PHP is needed to identify the users and generate only the data that they are supposed to see.
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 40309950
Anything you try to do client size has a value of exactly ZERO.  you can use markup and CSS to disable the display of data, but it will still exist in the source code for anyone who wants to see it.

However is is just about as simple as it gets on the server side to only select rows from the database that have the correct privilege level; and then generate using the fetched dataset.

Any tool that charges to do something this basic is just taking your  money and giving you no real value other than saving you 5 minutes to modify your database and add an identifier to the WHERE clause of the SQL.

Cd&
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
The viewer will learn how to count occurrences of each item in an array.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

726 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