Help please insert the current time on logout

That's how I disconnect:

$logoutAction = $_SERVER ['PHP_SELF']. » ? doLogout = true;

If ((isset & & ($_SERVER ['QUERY_STRING']! = "")) {})

$logoutAction. = '& '. htmlentities($_SERVER['QUERY_STRING']);

}

{If ((isset($_GET['doLogout'])) & & ($ {_GET ['doLogout'] == "true"))}

to completely disconnect a visitor, you must delete the session varialbles

$_SESSION ['MM_Username'] = NULL;

$_SESSION ['MM_UserGroup'] = NULL;

$_SESSION ['PrevUrl'] = NULL;

unset($_SESSION['MM_Username']);

unset($_SESSION['MM_UserGroup']);

unset($_SESSION['PrevUrl']);

$logoutGoTo = 'index.php ';

If {($logoutGoTo)

Header ("Location: $logoutGoTo");

"exit";

}

}

What I need is to insert the current time in the DB on logout.

This is my query:

$query = "UPDATE eu45antinew.t_usuario SET 'usuario_exitTime' = NOW() WHERE user = '$loginUsername" ";

$result = mysql_query ($query) or die (mysql_error ());

.. .but where should I put it?

Thank you

Sorry, my mistake...

I was using the wrong where clause like this:

$query = "UPDATE eu45antinew.t_usuario SET 'usuario_exitTime' = NOW() WHERE user = '$loginUsername" ";

instead of like this:

$query = "UPDATE eu45antinew.t_usuario SET 'usuario_exitTime' = NOW() WHERE user = '$colname_admin_login_RS" ";

It works perfectly now.

Thanks Brégent

Tags: Dreamweaver

Similar Questions

  • NO BOOT DEVICE - PLEASE INSERT the STARTUP DISK AND press a KEY ANY * please help *.

    I have a Compaq CQ-50 that worked very well. It has been upgraded to winows 7 Bonus a year ago. This is the message I get when I press the power button

    NO BOOT DEVICE - PLEASE INSERT THE BOOT DISK AND PRESS ANY KEY

    any help would appreciated more than you know

    Hello

    Have you tried to reinstall the hard drive if yes. Then the drive is bad & who has need of a replacement.

    If your laptop is still under warranty, contact HP and arrange for the disc replaced.

    If you are out of warranty and would like a guide to replacing the hard drive yourself, let me know.

  • Get 15 minutes back in time from the current time (pls help write request)

    Hi all

    I need to write a query that gives time 15 minutes before the current time.
    I need to calculate visits to a Web site for the last 15 minutes.
    Kindly help to write this query.

    Best regards, Imran

    Select sysdate - 15 /(60*24)
    Double;

    Concerning
    Asif Kabir

  • Problem with the display of the current time on a chart

    Hello

    I am strugglering with my software to make it work correcly.

    I just got a problem left: I'm programming a software to record the temperature by thermocouples. The thing is, I used a property node to display my current chart... So far, no problem. But when I press a button that record the temperature, I pass in the case following my case structure where the graph is represented by a local variable, and then time dispalyed by the table isn't present anymore. Ideally, shoud graph display the current time at any time on the chart.

    I don't know if my explanation is clear, so you can find my program as an attachment.

    Any help would be appreciated, I'm desperate.

    Thank you very much

    You write to a property node graphic of waveform at the same time to write data in the chart.  You must write to the node property before writing data, the following diagram shows a path on the left and a better way on the right:

    Here is another problem.  You don't need all these variables.  You don't even have the structure of the case:

    One last thing.  Equip your loops to avoid using time CPU 100% small delays, Wait (ms).

  • Error: "Please insert the disk:" - customer-delivery - ppd.xrm - ms ".

    I'm trying (for over a month now) to install FSX on my machince to Windows Vista.  I have more to satisfy the standard requirements for installation.

    I installed FSX successfully a couple of weeks.  However, the activation code provided in the package was "invalid".  The activation of product in the FSX folder open-therefore, I have found a number of phone, but without opening the application, I did have an activation screen number.  So, I could play for no more than 30 minutes.

    I uninstalled FSX to try to reinstall and activate.  Now, when I'm in the installation phase, disc 1 is complete, and almost all of disc 2 ends when I get the following pop up: "Please insert the disk:  It is not a disc number, that's all just empty.  The file that it is stuck with trying to install is "C:\".... "Licenses\client-deliverance - ppd.xrm - ms.  (I have a Windows Vista activated, so I don't know why it's having a hard time to verify the license, if it, in fact, that this file is trying to do.)

    I did a system restore, and I still get the same message when installing.

    Any ideas or advice on fixing it?  Next steps?  And, I can't reinstall Windows.  I lost the software.

    X11creed, wait no response from MS, take a look at this:

    http://flyawaysimulation.com/postt27803.html

    Look at the last message in cheezyflier. It works!

    The link for the cleanup utility does not work, but you will find with google or MS, do not mix when he says this is office cleaning uility or so. This works.
    Do so by following the instructions, my problems went away and I reinstalled just clean copy.

    See you soon,.

    SUP

  • My DVD has stopped working "cannot read DVDs Please decrease the current resolution.

    Original title: DVD

    My DVD has stopped working - error that says: cannot read DVDs Please decrease the current resolution and ensure that the connection of display type is taken care... Help!

    Hello

     
    What program you're using to play the DVD? Mention the name of the program?
     
    Try to play the DVD with Windows Media Player , and let me know if you get an error message.
    Play a CD or DVD in Windows Media Player
     
    Response with more information to help you.
  • installed the game CD Gears of War on my computer (Windows VISTA) and make me "Please insert the correct DVD - ROM, click OK and restart the application" - but the disk is IN the drive.

    original title: Gears of War for PC (Vista)

    I installed Gears of War game CD on my computer (Windows VISTA) and make me "Please insert the correct DVD - ROM, click OK and restart the application" - but the disk is IN the drive.  I've been on the net and does not know what is the problem and why this game will not run.  I've installed, uninstalled, reinstalled tried to run as administrator, got the latest patch, all the things that have said all sites to do - anyone have any ideas?  Any help would be appreciated!  Thank you!

    Hi NoOneSpeciale,

    It is very possible that your CD may be damaged.  Is it possible to get another copy to try on your machine? Or try this copy on another machine to see if it works or not.
    Also check in control panel--> system--> for you Device Manager make sure that there is no yellow/red icon next to the CD player and it's function correctly.

    Let us know the result, Kevin
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Try to install settlers 3 gold edition. I get a message "the settlers edition Gold 3 CD not found.» Please insert the CD and try again. »

    Original title: settlers 3 troubleshooting

    I had the settlers 3 gold edition installed on windows 7 Home premium 32-bit. After having extracted the files now, I try to run the game by autorun icon, a new window opens with options 'install new/edit' and a few others, but everything by clicking on one of the icons I get the same error of "settlers edition Gold 3 cd not found.» Please insert the cd and try again. »
    Please guide me how to solve the problem if you have any solution for this.

    Thank you

    Hi Bulech,

    Settlers 3 gold edition is not listed in the Windows 7 Compatibility Web site. It may or may not be compatible. Take a look. Clickhere .

    However, you can follow these steps and check if it helps to solve the problem for you.

    Step 1:

    I suggest, instead of just click on icons, you right click on the .exe file and run as administrator.

    Step 2:

    If it is little help, you can run settlers 3 gold edition in Windows Vista compatibility mode .

    Step 3:

    Alternatively, you can run the game in compatibility problems solving

    To run the troubleshooting program compatibility Troubleshooter

    a. open the resolution of the problems of compatibility of programs by clicking the Start button, then Control Panel. In the search box, type troubleshooting, and then click Troubleshooting. Under programs, click on run programs for previous versions of Windows.

    b. follow the directions contained in the resolution of the problems.

    Aziz Nadeem - Microsoft

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • When I try to run Age Of Empires with the CD in, I get a message "Please insert the right CD-ROM, select OK and restart the application.

    Former title: Trouble running games CD, post installation under Vista. That is to say 2 AoE, Warrior kings.

    I have vista on my laptop, I installed games like shogun and medieval total war and they both work perfectly, I tried to put it on the age empires and warrior kings: battles who are also on a cd format, I installed the last but they usually run after that. Although the instialltion is over, I get asked if I wanted to leave the program to run as administrator. : s

    DVD/CD drive recognize there is a disc, but does not work automatically. I can't install the program normally when I run the setup.exe for the game. When I try to run the program with the CD in, I get a message "Please insert the right CD-ROM, select OK and restart the application.

    I tried to run them in compatibility mode, using all variants. and also I tried soome of advice from the help article about the disk drivers. game discs are clean and one striped.

    Why can I install the program and access the drive to use the files it contains, but then not use the disk?

    Hello
     

    This problem may occur if one of the following conditions is true:
    a. you do not use the game disc to start the program.
    b. the CD player is not compatible with the program.
    c. using a copy of the program CD.
    d. you are not connected to the computer as an administrator.
    e. the programs interfere with the start of the game which is running but is invisible to you.
    f. the CD-ROM drive uses out-of-date drivers.
     
     
    I would ask you to try the methods listed in the article below:
    Error message or the game stops responding on the "Loading" screen when you start a Microsoft game: "insert the right CD.
    http://support.Microsoft.com/kb/228985/en-us

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Transfer problem - files Transfer Wizard says "Please insert the disc 1'... If I select OK it tells me the wrong disc is in the pc"

    I did a PC Restore on my Dell, I saved my files on USB 3... now it's time to download them again, the transfer Assistant tells me that "transfer is underway" and files are "fly through the window". But another window appears on the screen telling me "Please insert the disc 1'... If I select OK it tells me that the wrong disk is in the pc... it isn't." The transfer takes an age without a movement minute on the bar "load..." Any suggestions?  Kind regards.

    Did you just copied the files to USB devices or did you use some kind of backup software?

    If the latter, what is the name of the application?

    If the former can, you go to (at least one of) files on the USB key (for example, to open it)?  And what happens if you try to just copy one of the files (and use 'copy' rather than 'move' to ensure that the file on the USB device is not removed).

  • Stop/Fix "Please insert the last disk of all selfextracting and click OK to continue.

    (With the help of Win 7 32 - bit update)

    I have not used a disk of 3.5 inches for many years.  In addition, I have not used any device (USB, CD or DVD) that has / had problems of "whole selfextracting.

    Also, AutoPlay was disabled on my system for years.

    That said, whenever I do a search of file/folder I get "Please insert the last disk of all selfextracting and click OK to continue.

    How can I be to determine:

    1. What causes the error message and/or
    2. How to stop it forever!

    Thanks for any thoughts or ideas!

    DennisCPA

    Don't know if you've discovered this done yet for you, but I would say it is your usb flash drive. It happens when he is out BEFORE you used the 'Safely remove' icon on the taskbar.

    If it is, then you must copy any information on the USB key to another location and format the USB. Then you can copy the info on it and you're right to go!

    This will continue to happen sometimes even though you have the properties/policies defined in a quick deletion. I got mine the value of the radio button performance and ALWAYS use the icon REMOVE safe in your taskbar. Once you find that your data will be corrupted if is not removed properly, even if the ssd is supposed to be "hot." If you have a usb key that has a light on it, wait for the light to STOP BLINKING before removing it. If you do not have a light on this issue, it is always advisable to wait a second or two after the popup window say you that it is save to remove your USB.

    See you soon

    Glenn

  • How to report the current time on the ESX host in to a csv file with the following

    Hello guys

    I have the script next where I make the required details except the current time on the ESX host. Anyone can guide me please.

    {foreach ($esx to $vmhosts)
    $hostVC = $vcenter
    $hostCluster = $esx. Parent.Name
    $hostHost = $esx. Name
    $ntp = $esx | Get-VMHostNtpServer
    $hostNTP = "$ntp".

    }

    I want to integrate the following for loop of the above for loop and ge the output in a single table.

    foreach ($esxcli in get-vmhost | get-esxcli) {"" |} {Select @{n = "Time"; e = {$esxcli.system.time.get ()}}, @{n = "hostname"; e = {$esxcli.system.hostname.get (.hostname)}}}

    Add-Content - Path '$hostVC, $hostCluster, $hostHost, $hostNTP, $hostTime' $hostInvFile - $ hostTime is where I want to get my host right now.

    I'm vcenter, esx name, name of the cluster, host of the ntp server address, but I need the host thus present.

    Thanks in advance.

    Thank you

    vKar

    Try changing the line where the script retrieves the VMHost to this

    $vmhosts = get-VMHost-State connected. Name sort

    This way the script will be only to ESXi nodes that are "connected".

    Pick up time for those defective does not much sense in all cases

  • change the default color of the current time display

    I want to change the default color for the display of the current time from blue to orange. Is this possible in 2015 CC?

    Yes, this change has been made first Pro CC 20141 update.

    Currently, there is no way to return to the previous.

    Please fill out this feature request: feature request/Bug Report Form

    Vinay

  • How to make a label (javafx) to display the current time dynamically?

    Hi all

    How to make a label (javafx) to display the current time dynamically?

    I have not found a Type of event related to the time in javafx API.

    Please give me some suggestions. Thank you!

    Sage

    There are lots of examples of JavaFX clocks available, for example https://gist.github.com/jewelsea/3388637 or http://blog.crisp.se/2012/08/09/perlundholm/an-analog-clock-in-javafx

    For a simple label displaying the time, the simplest thing is to create a Timeline with duration 1 second and the number of indefinite cycle, which triggers an event handler that updates the label:

    final Label clock = new Label();
    final DateFormat format = DateFormat.getInstance();
    final Timeline timeline = new Timeline(new KeyFrame(Duration.seconds(1), new EventHandler() {
         @Override
         public void handle(ActionEvent event) {
              final Calendar cal = Calendar.getInstance();
              clock.setText(format.format(cal.getTime());
         }
    });
    timeline.setCycleCount(Animation.INDEFINITE);
    timeline.play();
    

    (If you use Java 8, use the new time API, which is much more pleasant than calendar.)

  • How can I display the current time in larger font when I need a look at it?

    Before I updated to iOS 10, I was able to double press the home button and the display shows the current time. Is it possible to do it now? I am sometimes in low light conditions and can not do the smaller font at the top. Thank you

    By clicking on the bottom of the power (sleep/wake) displays the screen you want. In fact, in iOS 10, the figures of the time are still larger than in iOS 9.

Maybe you are looking for