headerImage2

Test of two databases

The two databases have the same user. One database is barton and the other is test. I instantiate SiteClass, which uses user barton and database barton, into $S and the second database, test, into $X.

I then use $S to get the info from the logagent table for today, limit 1. I display it. I then use $X to get all of the info form the test database, table test and dispay it.

logagent: Array
(
    [site] => User-Test
    [ip] => 3.137.188.225
    [agent] => Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
    [finger] => 
    [count] => 1
    [created] => 2024-09-16 16:28:38
    [lasttime] => 2024-09-16 16:28:38
)

test: Array
{
[name] => BartonTest
[date] => 2024-07-02 16:23:53
[lasttime] => 2024-07-02 16:23:53

[name] => Bill
[date] => 2024-07-02 16:30:24
[lasttime] => 2024-07-02 16:30:24
}