Ok, I got it. It seem's there is a misunderstanding. The correct modification for different database and the same user/password look like this:
mysql_select_db ("
photopostdbnamehere")or die("Could not select database");
$query = "SELECT id,cat,title,bigimage,medsize FROM {$pp_prefix}photos WHERE userid = {$user['U_Number']} ORDER BY date DESC LIMIT $page,16";
$result = mysql_query($query);
$sth = $dbh -> do_query($query);
$numrows = $dbh -> total_rows($sth);
if ( $numrows < 16 ) $nextpage = 0;
$i=0;
$color = "lighttable";
$photorow="";
$photopanel="";
mysql_select_db ("
ubbdbnamehere")or die("Could not select database");
the mysql_select_db should
not be on top and end of the file. It must be put direct before and after the select.
Finished, User Happy
