How can i get login details to a table?

i am using my sql data base.people who are visiing my web
site can log in to the sites restricted areas using their Usernames
and Passwords. (the login is based on the "Register" table in the
data base)
When somebody enteres the site using their Username and
Password, and inputs new data to anothertable (classified table),
How can the classified table get the login Username to one of its
columns. (automatically Username of the user is added to the table)
how can i do that. A coding for that would e perfect. please
help me. i would be really greatful to you.
thanks
sisira

Sisira,
When you add the record to your table, include the UserID as
one of the
values. Just assign the current Username to a variable and
include that in
your SQL statement. (How you do this will depend on the
scripting language
that you are using)
UserVariable = <set this from your login session>
INSERT INTO anothertable (Field1, Field2, Username)
VALUES (value1, value2, UserVariable)
Does this make sense? If not, send me your page and I'll have
a look at it.
Please Zip the file first.
HTH
Steve
"[email protected]"
<[email protected]> wrote in message
news:fi2kvl$4or$[email protected]..
>i am using my sql data base.people who are visiing my web
site can log in
>to
> the sites restricted areas using their Usernames and
Passwords. (the login
> is
> based on the "Register" table in the data base)
>
> When somebody enteres the site using their Username and
Password, and
> inputs
> new data to anothertable (classified table), How can the
classified table
> get
> the login Username to one of its columns. (automatically
Username of the
> user
> is added to the table)
>
> how can i do that. A coding for that would e perfect.
please help me. i
> would
> be really greatful to you.
>
> thanks
>
> sisira
>

Similar Messages

  • How can I get a detail block to requery after a database change?

    Hi, I have a master/detail form. When the status of the master record changes, I need to update a date in one of the detail records. If I use SQL to update the detail row in the database in the ON-CHANGE trigger of the master block, how can I get the detail block to requery to show the change? When I try doing a go_block from any of the ...UPDATE triggers, it says it is restricted.

    wjpenfold,
    Do you have a "Relationship" defined between your Master and Detail blocks? If so, you simply need to requery your master block and the detail block will automatically be requeried. If you can't use a relationship, then you can use can create a timer in the trigger that updates the database and then in the When-Timer-Expired (WTE) trigger you can go to the detail block and execute a query. For example:
    /* Sample On-Change trigger */
    DECLARE
       timer_id  TIMER;
    BEGIN
    ....your code here that performs the update....
       /* Now create an instance of a timer */
       timer_id := Create_Timer ('upd_detail',1,NO_REPEAT);
    END;
    /* Sample Form Level When-Timer-Expired trigger */
    DECLARE
       timer_id   TIMER;
    BEGIN
       -- Find the timer first
       timer_id := FIND_TIMER('upd_detail');
       IF NOT ID_NULL(timer_id) THEN
          GO_BLOCK('DETAIL_BLOCK');
          Execute_Query;
       END IF;
    END;Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • HT2589 Could you show me the full account information (account information)? How can I get the detail information that who charge me?

    Could you show me the full account information (account information)? How can I get the detail information that who charge me?

    I'm not entirely sure what you are asking, but you can view the purchase history on your account (and view your payment method) on your computer's iTunes : if you log into your account on your computer's iTunes via the Store > View Account menu option, you should then see a Purchase History section with a 'see all' link to the right of it. Click on that and you should then see a list of your purchases. On your iPad you can only see a cut-down version via this page (which also allows you to contact iTunes Support if you have a problem with a purchase) : http://reportaproblem.apple.com
    There are instructions on this page for managing and stopping auto-renewing subscriptions : http://support.apple.com/kb/HT4098
    Or do you mean something else ?

  • How can i get the details on system before 2 months

    Hi gurus,
              To find the Total cpu time ,  cummulative users  we go for St03 and extract it. The details are available for only last 2 months.  How can i get the prevous months details. Is there any special job or parameter meant on SAP behalf, so tat it clears the history. If it runs kindly tel me wat job or parameter it is. And also tel how can i get the previous months details.
    Thank you.
       Livi.
    Moderator message: not directly related to ABAP development, please have a look in the Netweaver forums.
    Edited by: Thomas Zloch on Jan 5, 2011 11:43 AM

    Hi
    U should ask that to your basis, I know the system has the statistic data for a certain period only, the older data are deleted: I don't know if before deleting it a backup is done....but I don't believe
    Max

  • How can I get login.c, passwd.c command source code in Solaris 8.0 ?

    Hi, Everybody,
    How are you doing?
    I have lots of questions.
    Q1)
    I can't rebuild kernel of Solaris 8.0 source.
    If someone has an answer, would you give it to me ?
    It will help for me.
    Q2)
    In addition I want get login.c and passwd.c command source.
    I unziped the CD of Solaris 8.0 source, buf I cannot find the source code for login.c and passwd.c command.
    Would you help me ?
    Thank you

    http://www.4shared.com/file/210566155/c080d93a/db_online.html

  • How can I get more detail information ( Sales Order ) of Reduction of PIR??

    Hi Experts,
    In our company,our customer want to see more information about the reduction process for the planned independent requirements.
    That means for example:
    First we create 150 pc planned independent requirement for material "ABC".Then we create a sales order for material "ABC" for 20 pc.After that we do the delivery for this sales order,post the goods issue. So after the outbound delivery, the  planned independent requirement for material "ABC" will reduced to 130 pc.
    Although in TCODE:OMP4,we have active history is updated when planned independent requirements are reduced by a goods movement. So in MD73 we can see the withdrawal quantity 20 pc for this planned independent requirements.And in md63 we also can see the withdrawal quantity (20 pc) for this schedule lines.
    But we can not see the detail information about the withdrawal quantity!!
    We can not directly know this withdrawal quantity is caused by which sales order???The sales order number???
    So I want to ask how can I directly see the detail information about the reduction of planned independent requirements??
    That means how can I directly know  this withdrawal quantity is caused by which sales order???The sales order number???
    Thanks for any reply!!!

    Dear Liu,
    check the material document posted in T Code MB51 for 601 movement.
    Here you can get the details regarding the customer,and check for the same material,customer combination in T Code VA05.
    Check and revert back.
    Regards
    Mangalraj.S

  • How can I get a detailed list of 'albumData' (e. g. date and title)?

    I want to add a list of title and date of my pictures to a cd with an iPhoto library. I found 'albumData' contains this information. But: How can I 'export' these data (as printble text)?

    It's an "xml" file, so you can open it in just about any convenient text editor. Or, you can drag the file to any browser window, then copy/paste whatever text you like.

  • Im worried that my account was misused. How can I get login activity logs to prove it?

    How can I find out what account activity has occurred?
    Many thanks,

    1.  this is not Apple customer service, this is just a forum for Apple product users
    2. Apple does not have anything to do with lost or stolen devices - http://support.apple.com/kb/HT2526
    3. You need to take this issue to your local police and ask them how to deal with it.

  • How can I get rid of Global Temp Table

    Hello,
    I've been writing PL/SQL stored proc for creating reports on VB.NET front end. Until now, I've been using session specific global temp table to store intermediate results and at the end I pass the result set to .NET via reference cursor. The reports are created by simply binding the ref cursor result sets to .NET grids. It's been working fine, but I am kind of bothered by the temp tables. I looked on other options, but couldn't really come up with one.
    Can somebody suggest me how I can get rid of those temp tables? Thanks,

    Tubby, that's exactly I was trying to do. I think that table type has to be defined in database, not within PL/SQL. How can I create that table of user defined record type? I tried that, but it doesn't allow me. I think I am missing something. For example,
    create type group_t is record
    (A varchar2,
    B number,
    C number)
    now inside sp, i have something like:
    type my_group is table of group_t index by binary_integer
    now I have sp cursor as
    cursor cur_test IS 'ABC' as A, 1 as B, 5 as C
    now i do something like this. My original queries are longer and much more complicated so please don't suggest you can directly open ref cursor for this query.
    FETCH cur_test BULK COLLECT INTO my_group;
    Then I do all the processing, calculations, totals, sub-totals, and insert into temp table and return via ref cursor.
    My problem is I can't directly fetch into the above table you mentioned. How should I go about in this situation?
    Maybe I should STOP thinking about this approach and just do whatever I've been doing or solve it through pure SQL. However, there are tons of problems with pure SQL approach.

  • How can I get Properties changed in a Table?

    Hello!
    I have a Table with a column that is editable (inputText). I need to now after click some Button if and which Rows (exactly the Entities behind) have been changed and show a "OkCancel"-popup. If the user says "OK" then the property should be updated in the database. If not nothing should occurs.
    How can I do that? Does somebody knows some good tutorial where I can learn to do that?
    Thanks in advance!

    Take a look at this blog post & sample - where you could get the modified rows:
    http://andrejusb.blogspot.com/2010/04/changed-row-highlighting-in-oracle-adf.html
    Thanks,
    Navaneeth

  • How can I get more detailed logging in NFS Server (2012 R2)?

    I've set up the "Server for NFS" feature and have shared out a folder. I've made it as wide-open as possible. Anonymous access enabled, with read-write set up for a specific IP address. I attempt to connect to the mount using the following command
    on my Ubuntu 12.04 system:
    sudo mount -t nfs windowsmachine:/share /path/to/local/mount
    And I get an error of "Mount system call failed". I'm trying to figure out what the issue is but the Windows event logs have not been very helpful. I've set up activity logging via https://technet.microsoft.com/en-us/library/cc770981.aspx but still
    do not see much happening in the NFS or Windows security event logs. Can somebody tell me how I can troubleshoot this issue? Since I have anonymous access enabled and have not done any UID or GID weirdness, do I need to make the ntfs permissions everyone full
    control? Even if that were the case I'd expect to see some failures in the Windows security log.

    dpkg -la | grep nfs gives me
    ii  nfs-common     1:1.2.5-3ubuntu3.2                                 
    NFS support files common to client and server
    ii  nfs-kernel-server      1:1.2.5-3ubuntu3.2                                 
    support for NFS kernel server
    It's a relatively old version of Ubuntu, 12,04 LTS. I take it Ubuntu cares about what version the NFS server is running?

  • How can I get more details on my memory usage?

    I'm trying to delete stuff on my computer to have more memory, but I don't know what's taking up so much memory.
    Is there a way for me to see a breakdown of my usage so I know what exactly I can delete to make more space?
    I also do have a an external hardrive with plenty of room for my stuff, so that's also why I'm trying to delete as much as possible off my computer.
    Thank you

    It's hard drive space that you are referring to, memory (Ram) is the short term storage.
    Download OmniDiskSweeper and use it to identify your files, then move the ones you choose to the external drive.

  • How Can i get the data From A Table that use DefaultTableModel

    Hi and sorry for my bad english. The problem that i have is that i used this code to fill a table. Now i want when i select a row and click in a button , get the value of that row that i select so then i can update or delete that data in my dataBasesServer.
    private void consulta(){
              Connection c = ConectarSQL.conexionSQL();
              try {
                   Statement s = c.createStatement();
                   ResultSet ar = s.executeQuery("Select Apellido, Nombre FROM Personas");
                   DefaultTableModel modelo = new DefaultTableModel();
                   this.Tabla.setModel(modelo);
                   modelo.addColumn("Apellido");
                   modelo.addColumn("Nombre");
                   while (ar.next()) {
                      Object [] fila = new Object[2];
                      for (int i=0;i<2;i++)
                         fila[i] = ar.getObject(i+1);
                      modelo.addRow(fila);
              } catch (SQLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    }

    Dont worry kevinaworkman, the thing is that a read it and is really usefull, but i was looking other kind of solution. But i welcome your answer and interested to solve my problem.
    I find the answer.
    To retrive the data i have to use the following instruction:
    Tabla.getValueAt(Tabla.getSelectedColumn(),Tabla.getSelectedRow);

  • Calc: How can I get absolute cell references in tables to work?

    Hi, I'm new to Star Office, and have run into a problem in my first spreadsheet.
    I have a data table in my spreadsheet.
    Some cells in the table need to make calculations based on other cells in the table.
    When I sort the table, however, the cell references are made to be incorrect. I expected that I could just use absolute references (e.g. $A$2) and when the table was sorted those references would be updated to refer to the new absolute location of that cell, e.g. $A$10). However, the absolute references are being left literally the same ($A$2) after the sort, making them reference a different row of data than intended. Relative references of course don't work in this situation either (I tried for thoroughness). (I thought Excel behaved the way I expected, but I just tried it in Excel 2007 and it is exhibiting the same behavior as StarOffice Calc.)
    I'm also concerned, although I haven't tried it yet, about what will happen when I reference cells in this table from another table using absolute references that the same problem will exist...
    So basically, I can't find a way to use absolute references to cells in a table that will persist correctly when the table is sorted. Any suggestions?
    Thanks. Asa
    Edited by: earthasa on Sep 20, 2007 2:37 AM
    I was able to work around the problem by creating an index column in the table with a unique number for each row of data and using vlookup() to reference the correct row. If there is a more elegant solution I'm still interested :)
    Edited by: earthasa on Sep 20, 2007 3:00 AM

    OK. Think I've got it now thanks to looking at the short keys and searching for "Full Screen".  The upper left key is "`" which looks like a grave - a slightly angled single quote. But when I look at the "Application" setting for Toggle full screen it is set to "'" - a "normal" single quote.  Sure enough, if I hit the normal single quote key the toggle works.
    I have not been anywhere near the hotkeys and can't imagine why anything would change it from a grave key to a single quote - especially as they look almost identical on the screen.  I'm guessing that Adobe changed this (maybe only for international users?)
    Anyway I now know how to toggle full screen, although it makes the "Premiere" keyboard with its big purple key for "Toggle full screen" redundant.  Does make me wonder what the shortcut key of "'" or CTRL + "'" gives that I'm presumably missing since it appears to have been remapped.

  • How can i get all values from jtable with out selecting?

    i have one input table and two output tables (name it as output1, output2). Selected rows from input table are displayed in output1 table. The data in output1 table is temporary(means the dat wont store in database just for display purpose).
    Actually what i want is how can i get all values from output1 table to output2 table with out selecting the data in output1 table?
    thanks in advance.
    raja

    You could set the table's data model to be the same:
    output2.setModel( output1.getModel() );

Maybe you are looking for