OK - this code is probably sloppy to the real MySQL gurus here... but I added a hack to the shortstatspal to pull the total number of photos from my photopost database.
It was a heck of a run... kept getting non-member function errors and such. But by luck and the grace of god, I somehow got it working.
Here's what I did:
// Hack to include Photo Stats
$photolink = mysql_connect("DBSERVERNAME", "PHOTODBUSER", "PHOTODBPASS") or die ('I cannot open the Photo DB');
mysql_select_db ("PHOTODBNAME",$photolink)or die("Could not connect to the Photo DB");
$query = "SELECT SUM(views), SUM(filesize), COUNT(*) AS fsize FROM photos";
$totalv = $dbh -> do_query($query,$photolink);
list( $totalviews, $diskuse, $totalphotos ) = $dbh -> fetch_array($totalv);
mysql_close($photolink);
$relink = mysql_connect("DBSERVERNAME", "THREADSDBUSER", "THREADSDBPASS") or die ('I cannot open the server');
mysql_select_db("THREADSDB",$relink)or die("I cannot reconnect");
-------------end
This is the part that's probably not cool... but I just hardcoded in the database names, users names and passwords for:
DBSERVERNAME
PHOTODBUSER
PHOTODBPASS
PHOTODBNAME
THREADSDBUSER
THREADSDBPASS
THREADSDB
So be sure and substitute the real values for above.

Hope it helps a bit.
Maybe one of the Dave's will see a way to clean it up. OR - surprise me... maybe I did it right!
