Solved

HTML Table with an Admin and a User view

Posted on 2014-09-08
2
159 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
[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 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
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.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

717 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