This topic is locked

2 very simple questions

1/17/2007 11:32:42 AM
PHPRunner General questions
R
runnerPHP2008 author

I have 2 relatively simple questions:

  1. On my List.php page I have a large banner on the right hand side. The problem is that the the data on the List.php page aligns itself in the middle of the page, not at the top of the page. At first glance on my site, you would think there was no data unless you scrolled down a little and found that the data begins in the middle of the page, not at the top. How do I re-align the List.php pages to align at the top and not the middle?
  2. I want to collect the date/time of when users are logging in. I want data to be entered into the database after each user logs in. What "field type" should be set for this in the database?

    Everytime a particular user logs in, I want the new log-in-time to overwrite the old-log-in-time.

    What code should I add to do this?

Alexey admin 1/18/2007

Hi,

  1. I'm not really sure how the List page is alignrd to middle. I need to take a look at your page. Please send to support@xlinesoft.com a URL to your page where I can see this issue. You can publish your project on the Demo account and send me the link.
  2. Add a field of DATETIME type to your Login table.

    Then add this code to After successful Login event on Events tab in PHPRunner.
    global $conn,$strUsername;

    $sql="update Loginsset lastlog=now() where username=".$strUsername;

    db_exec($sql,$conn);


where Logins, lastlog and username are your actual table and field names.