Multiple users need to see some documents in SQL table, PHP

Is there a way to serve up data for a user based on their group assignment?  I have two SQL tables.  The first one has the user login information (username, password, groupID note: multiple users can belong to same GroupID).  The second table has the data that needs to be shown (file name, date, groupID note: multiple files can be assigned to same GroupID).  I need to be able to serve up the file name and date from the second group based on the groupID assigned in the first table.  I know this should be simple, but for some reason I just can't wrap my head around it.  My site is PHP.   Thank you in advance for any help,

The GroupID you are using is typically used as an access level and used for access and restriction to pages, but the same principles apply here. I would suggest using three groups, with the third meaning both. This value can be stored in a session variable or used when a recordset from the user table is executed on the page. Use this value in your select statement to choose records marked with the same groupID.
  So you'll have three groups, 1, 2 and  3 with three indicating both. However, in the second table, the groupID in those records will still only be assigned to 1 or 2,  so you'll need an OR statement in the SQL to choose both when the access level is 3.

Similar Messages

  • Hi, I would like to know if is it possible to install windows on mac pro , because I need to have some application like SQL server and visual studio, and they could not be install on mac

    hi, I would like to know if is it possible to install windows on macbook pro , because I need to have some application like SQL server and visual studio, and they could not be install on mac

    Windows on a Mac

  • Add multiple users to a certain database in the SQL server in one go

    I wonder if there is any method to add multiple users to a certain database in the SQL server in one go and without using transact code.
    I can add a single user to a certain database “Q” for example by right click on the user “U1” for example then properties then in user mapping tab select
    the database “Q”, so there should be a method to add multiple users ( U1,U2,U3…) to this database?
    Best Regards,
    Ahmad

    Many thanks Visakh16,
    I can do this using the below script, but what I am searching for is do to this without any scripting.
    USE TestDatabase; --Make sure you have the right database
    DECLARE @sql VARCHAR(MAX) = '';
    SELECT @sql = @sql + 'CREATE USER ' + name + ' FOR LOGIN ' + name + ';
    ' +
    'GRANT CREATE TABLE, CREATE PROCEDURE, CREATE VIEW, VIEW DEFINITION TO ' + name + ';
    FROM sys.server_principals p
    WHERE p.type in ('S','U') -- SQL Logins and Windows Login. Do not change!
    and p.name in ('U1','U2','U3'); -- List of names to add. alter to suit
    PRINT @sql; -- Show the statements being executed in the messages pane
    EXEC(@sql); -- Run the statements that have been built
    Thanks,
    Ahmad

  • Multiple users working in the same document and same time.

    Hello Guys,
    and thanks for looking into this
    At our company we're still in doubt wether or not to update our software to CC or just update to CS6. Currently we all have different versions (going from CS3 to CS5), and that's really time-consuming.
    The most important question would be if it is possible in the CC to work in the same file at the same time.
    Working on magazines, catalogues or books this would be a major time-saving option!
    For example I could work on chapter 1 and 6, whilst my collegues are working on the other chapters.
    The other users could then see how far I am on my chapters, change things (make notes) etc.
    Is this possible in CC or not?
    Thanks for your answers and time.
    Best regards,
    Sam
    PS: If there are major setbacks working on the cloud (between multiple users/computers) please let us know.

    Let me attempt an answer.
    Short answer, no. Multiple users cannot edit a the same file at the same time.
    You'll need a content management system, to enable check in/check out, prevent overwrites etc. But (there's always a but), Creative Cloud offers several workflows and tools that can be used to help streamline multi-user publication workflows.
    Using Creative Cloud will ensure that all users will be on the same version of the software, and there won't be any accidental lockouts due to format changes, and no need to run arounf to get the document downsaved. All users also have access to the latest features as soon as they become availble.
    For products, such as books and magazines: InDesign needs to be the primary software that you use. When you design the content architecture of your publication, you can employ the following techniques and tools:
    Break up your publications into several INDD files, let's say for file for each story.
    Compile the individual files into an InDesign book.
    Link Ps and Ai or other files when you place them in the InDesign layout. That way whenever a designer updates an asset, InDesign will notify you that a linked file has changed and you can choose to update the link.
    InCopy was recently added to the Creative Cloud. Authors can can edit stories without actually having to open the InDesign files. For details see the InCopy help. InCopy has several workflows that can help out in this kind of setup.
    Other than the Creative Cloud apps, you'll also need to setup folder and directory structures on the shared storage location.
    Setup a shared location/drive so that all users have access to the linked files.
    Control read/write access to individual files using the OS commands on the file directory/server. For example, Layout designers only have edit permissions on the layout (indd files); while Photographers can only edit .psd files, and so on. For small teams this might not be necessary, but for larger teams this may help.
    You could also consider storing your files using a Content Management System. You'll need to evaluate the cost and benefits properly.
    Hope this helps.

  • Multiple Users need (maintenance) access to a customized table.

    Hi Gurus
    We created a z table and maintained couple of values in it
    The _attributes _ are as follows:
    Delivery Class : A (Application table (master and transaction data)
    Table Maintenance : Display and Maintenance allowed
    ISSUE :
    This table does not allow multiple access. In other words, multiple users have to enter this table and change values in this table. Is that possible?
    Could you let me know how can this be done?
    Thanks a lot
    Sridevi

    By default, I think SM30, and probably SE16 as well, will lock the entire table if someone is trying to change it.  So, only one person can maintain the table at a time.  This is the simplest way that it can ensure data integrity. 
    If I wanted multiple users to be able to maintain a table simultaneously, I'd create a custom screen (dynpro, user dialog, whatever you want to call it) to do it, using lock objects (ENQUEUE and DEQUEUE function modules that you create for the key of your table) to lock / unlock specific rows when a user wanted to change them.  I also might use some sort of reference number generator to ensure unique keys. 
    Not a terrifically complicated piece of development but you'd need to get a Abaper to do it.

  • How to loop through Multiple Excel sheets and load them into a SQL Table?

    Hi ,
    I am having 1 excel sheet with 3 worksheet.
    I have configured using For each loop container and ADO.net rowset enumerator.
    Every thing is fine, but after running my package I am getting below error
    [Excel Source [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009.  There may
    be error messages posted before this with more information on why the AcquireConnection method call failed.
    Warning: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (5) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified
    in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
    [Connection manager "Excel Connection Manager"] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft Access Database Engine"  Hresult: 0x80004005  Description: "The Microsoft Access database engine cannot open or write to the file ''. It is already opened exclusively by
    another user, or you need permission to view and write its data.".
    Pleas suggest me the correct way of solving above issues.
    Thanks in advance :)
    regards,
    Vipin jha
    Thankx & regards, Vipin jha MCP

    Hi ,
    Please refer the below link for Looping multiple worksheet in a single SQL Table.
    http://www.singhvikash.in/2012/11/ssis-how-to-loop-through-multiple-excel.html
    Note:-If you using excel 2010 then you have to use EXCEL 12.0 .
    Above link explaining  step by step of Looping multiple worksheet in a single SQL Table.
    regards,
    Vipin jha
    Thankx & regards, Vipin jha MCP

  • Other Users need access to Appraisal Documents in OSA

    Hi,
    We are implementing Objective Setting and Appraisals and have found that when a user logs into the Portal, they are only able to enter Appraisal documents where they are the Appraisee or Appraiser.
    We have the need to allow other users to enter Appraisal documents, for example, the Next Higher Supervisor.  When they log into the Portal, they can see all their subordinates, but it looks like no one has an appraisal document, when in fact, they do.
    What do we need to change to allow these extra users to be able to see that appraisal documents do exist so that they can select them?
    Any help is appreciated.
    Thanks,
    Mary Ann Kolnik

    Hi Rachel,
    Hopefully I will answer your questions. 
    We currently have a custom implementation of the column owner badi because we found that the choices delivered (AE-for appraisee only, AR-for appraiser only, etc.) were not enough for us.  We determined that our requirements for column access needed an owner of the appraisee sometimes and an owner of appraiser sometimes and possibly even other participants (like a Power User, Delegate, etc.).  So, right now we created an AL choice for 'All Users' and then in the column owner method check_column_owner, we have code to see if 'myself' is the appraisee, the appraiser, or a further participant.
    If he's the appraisee, we pass an 'E' in the export parameter column_owner.  If he's the appraiser, we pass an 'R', and so forth.
    Then we have these values in our custom zcol_access table.  This is so that the column access badi can pull the column availability from zcol_access for the particular column_owner per column/status/substatus.  This allows for columns to be hidden, display only, or changeable for particular people at particular status/substatuses.  We do have the template field also in the zcol_access table so you could separate the column access per template also. 
    I hope this makes sense.  It is working for us so far, now the issue is how to get the further participants to be able to enter the correct set of appraisals and get the right columns and custom pushbuttons.  We would like to use the hrhap_others table, because it works well with our column owner and column access design, but our further participants can change their roles often, so we don't want them permanently tied to an appraisal.  More research and trial and error needed.
    Mary Ann

  • User needs to see only one E&A database for manual data entry

    Hi Experts
    Please can you suggest a solution for the following requirement.
    Requirement is that when a user log in to the Entry & Approval to entry the manual KPIs he should see only the one database which he is allowed to instead of drop-down and select the database which he has to enter the data as multiple models are created to Entry& Approval and Scorecards.
    Tried to create model connection for the model and assigned to the user and when i login with that users also all the databases are visible and have to select a database from the list of databases available for entry&approval.
    Thanking you,
    Regards
    Vinay.

    More information, after running a profile trace the following 2 statements, the column with the default on a UDF returns a row while the other default does not.  This might be the cause of this bug.  Is the same logic to generate the object on
    the subscriber used to generate the conflict table?  
    exec sp_executesql N'
    select so.name, schema_name(so.schema_id)
    from sys.sql_dependencies d
    inner join sys.objects so
    on d.referenced_major_id = so.object_id
    where so.type in (''FN'', ''FS'', ''FT'', ''TF'', ''IF'')
    and d.class in (0,1)
    and d.referenced_major_id <> object_id(@base_table, ''U'')
    and d.object_id = object_id(@constraint, ''D'')',N'@base_table nvarchar(517),@constraint nvarchar(517)',@base_table=N'[dbo].[repTable]',@constraint=N'[dbo].[DF__repTable__id__117F9D94]'
    exec sp_executesql N'
    select so.name, schema_name(so.schema_id)
    from sys.sql_dependencies d
    inner join sys.objects so
    on d.referenced_major_id = so.object_id
    where so.type in (''FN'', ''FS'', ''FT'', ''TF'', ''IF'')
    and d.class in (0,1)
    and d.referenced_major_id <> object_id(@base_table, ''U'')
    and d.object_id = object_id(@constraint, ''D'')',N'@base_table nvarchar(517),@constraint nvarchar(517)',@base_table=N'[dbo].[repTable]',@constraint=N'[dbo].[DF__repTable__somein__1367E606]'
    Pauly C

  • User can't see some OID entry from 3rd party ldap browser but OAM?

    Hi All,
    after tried to applied access control to some OID entry, user then can't see that entry from 3rd party ldap browster, and this is a expected behavior, but why the same user can see that entry from user management interface of OAM?
    Regards,
    Makson

    Hi Makson,
    OAM's Identity Server binds to OID as a single user* (typically an OID admin, even orcladmin) and applies only those acl's that have been defined within OAM. So when you login to OAM as end-user X, the Identity Server (eg orcladmin) checks to see what rights within OAM have been defined for User X - but in this scenario any rights defined within OID are not applied to user X. By default, OAM end-users have no access to information in ldap (although the OAM Admins have full access by default).
    Regards,
    Colin
    *Depending on how you are accessing OAM, you may see extra binds in the OID logs when the end-users actually login to OAM.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • New user - need info on reading documents

    I dusted off my husbands old Tungsten E which I know is kind of old but would be sufficient for my needs, namely use it to read documents on the go.  (My husband is not much help as he never did really used it.) So really all I need is information on cheap or free software (and how to put it on the PDA) so I can open  either word or pdf files, all I need is to read, no editing necessary. I have an SD card I can use to move the files from my pc, so I don't have to deal with much sinking. 
    As you can't tell I am not very PDA savy, so the simpler the better.  Thank you all in advance for any help.
    Post relates to: Tungsten E

    First tell us if the program Docs to Go is already installed if not just follow this guide:
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=38830
    Please note that you will need to load palm desktop first inorder to load this software to your device.
    Set up Documents To Go
    Documents To Go, a third-party application from DataViz, lets you carry Word, Excel and PowerPoint files on your handheld, so you can be more productive wherever you are.
    DataViz Documents To Go Professional Edition is included on the Tungsten E2 CD-ROM. To install Documents To Go:
    Windows:
    Insert the Tungsten E2 CD-ROM into your PC.
    A "Discover your handheld" screen will automatically appear. Select "Add software to your handheld."
    Select "Documents To Go," then select "Install."
    Follow the onscreen instructions to install the software.
    Mac:
    Insert the Tungsten E2 CD-ROM into your Mac.
    On your desktop, click Palm CD icon.
    Open the following sequence of folders:
    Palm CD : English : Essential Software : DocumentsToGo
    Double-click the icon for DXTGPROFull7003en.dmg.
    A Documents To Go panel will open after the image is mounted. Double-click the Documents To Go Installer icon.
    Follow the onscreen instructions to install the software.
    How do I learn to use Documents To Go?
    Launch Documents To Go on your PC or Mac. From the Help menu, select Interactive Tutorials (Windows) or Getting Started Manual (Mac).
    You can also go to www.DataViz.com for complete product information, technical support and more.
    Documents To Go is supported by DataViz. If you have questions or need help, please contact DataViz.
    If you already have Docs to Go installed on your device then just drag and drop the files on to the SD card from the PC, then insert the SD card into the device and open Docs to Go to view the documents.
    Message Edited by IrreducibleM31 on 03-20-2009 07:17 PM

  • All users can not see some of  BPA 'free attributes' in process models

    All,
    We are using BPA 10134 to model processes.We have a very strange issue
    When we login using a particular user from particular machine we can see following attributes for a human task
    USer Attribute Text1
    User Attribute Text2
    User Attribute Text3
    but when we login using other user, we could not see same attributes for process models
    Anybody has any idea what are we missing ?
    Regards,
    Praveen

    Hi Ashish,
    I am new to BPA. So I am really not sure what filters means and how to setup.
    Anyway I will do bit explore and try to resolve it.If you have any nice article on BPA filters please post here
    regards,
    Praveen

  • Need to see some keynote samples

    I'm trying to illustrate the power of keynote to my colleagues. Does anyone have any links to sites with some really effective Keynote samples?

    For starters, the iWork Tour is installed right on your machine. It can be found in HD >Library >Application Support > iWork '06.

  • Need help on syntax of PL/SQL Table type

    Hi Everyone
    I have the following Procedure
    DECLARE
    TYPE ln_empno IS TABLE OF NUMBER;
    ln_empno1 ln_empno;
    dml_errors EXCEPTION;
    PRAGMA EXCEPTION_INIT (dml_errors, -24381);
    ERRORS NUMBER;
    BEGIN
    UPDATE emp
    SET empno = empno
    RETURN empno
    BULK COLLECT INTO ln_empno1;
    FORALL idx IN 1 .. ln_empno1.COUNT SAVE EXCEPTIONS
    INSERT INTO t1
    VALUES (ln_empno1 (idx));
    EXCEPTION
    WHEN dml_errors
    THEN
    ERRORS := SQL%BULK_EXCEPTIONS.COUNT;
    FOR i IN 1 .. ERRORS
    LOOP
    DBMS_OUTPUT.put_line ( 'Error '
    || i
    || ' occurred during '
    || 'iteration '
    || SQL%BULK_EXCEPTIONS (i).ERROR_INDEX
    DBMS_OUTPUT.put_line ( 'Oracle error is '
    || SQLERRM (-SQL%BULK_EXCEPTIONS (i).ERROR_CODE
    END LOOP;
    END;
    This will collect the single column, I am not able to get the syntax to create a record containg empno and ename and bulk collect into a collection type.
    Can anyone help me to execute this procedure for ln_empno as a record of empno and ename.
    Thanks in Advance
    -Ahmed

    Also,
    If you want it as an update then why not just alter as per my example... e.g.
    SQL> ed
    Wrote file afiedt.buf
      1  DECLARE
      2    TYPE lt_emp_rec IS RECORD (empno NUMBER, deptno NUMBER);
      3    TYPE lt_emp IS TABLE OF lt_emp_rec INDEX BY PLS_INTEGER;
      4    lr_emp lt_emp;
      5  BEGIN
      6    UPDATE emp
      7    SET deptno = deptno+10
      8    RETURNING empno, deptno
      9    BULK COLLECT INTO lr_emp;
    10    FOR idx IN 1 .. lr_emp.COUNT
    11    LOOP
    12      DBMS_OUTPUT.PUT_LINE('EmpNo: '||to_char(lr_emp(idx).empno)||' ::: DeptNo: '||to_char(lr_emp(idx).deptno));
    13    END LOOP;
    14* END;
    SQL> /
    EmpNo: 7369 ::: DeptNo: 30
    EmpNo: 7499 ::: DeptNo: 40
    EmpNo: 7521 ::: DeptNo: 40
    EmpNo: 7566 ::: DeptNo: 30
    EmpNo: 7654 ::: DeptNo: 40
    EmpNo: 7698 ::: DeptNo: 40
    EmpNo: 7782 ::: DeptNo: 20
    EmpNo: 7788 ::: DeptNo: 30
    EmpNo: 7839 ::: DeptNo: 20
    EmpNo: 7844 ::: DeptNo: 40
    EmpNo: 7876 ::: DeptNo: 30
    EmpNo: 7900 ::: DeptNo: 40
    EmpNo: 7902 ::: DeptNo: 30
    EmpNo: 7934 ::: DeptNo: 20
    PL/SQL procedure successfully completed.
    SQL>Was that so hard?

  • How to pass values and see outout of PL/SQL Tables, SYS_REFCURSORs?

    I am new to SQL Developer (Version 3.0.02).
    Our QC division wants to test stored procedures using SQL Developer.
    I tried to test procedures with PL/SQL tables and SYS_REFCURSORS as input and output parameters.
    When we run it by pressing the green arrow we get the Run PL/SQL window.
    How can we:
    - Put values to SYS_REFCURSOR and PL/SQL table type input parameters?
    - How can we display SYS_REFCURSOR and PL/SQL table type output parameters?
    All this time we were using SQL*Navigator. In Navigator the PL Tables and SYS_REFCURSORs outputs are shown in a nice grid.
    Here, in SQL Developer, do we have to WRITE our own code to input and display these types of parameters????

    Hi Channa,
    Yes in SQL Developer 3.0 you will have to write your own code to test out ref cursors.
    I had created test harness scripts for all my procedures having ref cursors as parameters.
    And I had to dbms_output all the values on the screen.
    Probably a limitation of the SQL Developer 3.0 tool.
    In case you come across different solution to this do let me know also.
    Thanks,
    Viju
    blog: http://whizdba.wordpress.com

  • Some users can't see attributes in the Query Builder

    Hi.
    I have problem. Some users can't see some of attributes of info-object in the Query Designer. Where is the problem?

    I think you would need to give more details on the problem,
    as <b>some</b> users are not able to see <b>some</b> attributes.
    Do they all share the same profile, what is the distinguishing thing among the some users who can see the attributes and the ones who cannot see the attributes.
    Need to drill down further I guess.
    Cheers
    Anurag

Maybe you are looking for

  • Webdynpro Java and Webdynpro ABAP

    hi all, Im working in webdynpro java. Im confused about WD java and WD ABAP. which one we should select for what? And now a days people are telling that SAP is coming up all business packages in WD ABAP. Is it true? Which one is better either WD Java

  • AS2 Sender Adapter -- Need clarity.. Very Very Urgent...!!!

    Hi AS2 experts, Regarding AS2 sender adapter: We will provide the details TP:  HTTP MP:  AS2 *Message Subject = ** 1. Can anyone please clarify what is this message subject ?? Its the incoming file name we need to provide? According to few blogs, 2.

  • Hardware requirements in production

    Hi Experts Pls share your experience for the recommended Disk Space, Memory, Processors for each product in Production Product           Oracle Weblogic 10.3 and OIM 9.1 Disk Space (Gb)     Memory (Gb)     Processors (n x 1.8 Ghz Xeon) -- ? Oracle Da

  • CS6 beta along side CS5

    Will there be any conflict to installing CS6 in Win 7 64 without uninstalling CS5? I've been trying it out on Win 8 but hit a snag (no drivers for certain HW) and I really don't wish to uninstall CS5.

  • How can i import passwords from opera to firefox (mac)?

    Hi, I am setting up my new computer and want to use firefox instead of opera. But I cannot seem to figure out how to import the passwords from opera to firefox (or to export them from opera). Any advice? I am on a mac.