CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Filter By User ID

Print topic Send  topic

Author Message
brianj1398

Posts: 1
Posted: 06/23/2005, 7:37 AM

I am working on a student registration system, and I have a table called course, and their is a realtionship with the following tables using the course id: staff, students, attendance, and staff attendance tables. Is there a way that I can filter records in the above tables, so that the user can only see their courses, staff, students, attendance, etc. ? I would also like the administrator to be able to see everything.
_________________
Brian Jackson
View profile  Send private message
Oper


Posts: 1195
Posted: 06/23/2005, 11:00 AM

id = ccgetuserid()



http://www.GlobalDevelop.com
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message
Oper


Posts: 1195
Posted: 06/30/2005, 9:21 AM

Got your PM.
For Admin too.

Use for the user:
IDfield = ccgetuserid()

You Shoudl have a Query created where you have the user Table linked to get the GroupLevel.

then Should be:
IDfield = ccgetuserid() OR
usertable.Level >= 90

if 90 is Admin Level.

Let me know if worked.



http://www.GlobalDevelop.com


_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.