Chuck,
Ok, I am running seperate batabases with the same passwords.
I got this:
$data_dir = "http://www.qualityfishing.net/gallery" ;
My query now looks like this:
}
mysql_select_db ("proguide_gallery")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 ("proguide_forum")or die("Could not select database");
I sill get the same error everyone else way getting.
So as you told me I added to the top of the file and have this:
require ("main.inc.php");
// configure your database settings
$host = "localhost"; // Vertexhost
$user= ""; // ??????
$password= ""; // ?????
$database=""; // proguide_gallery or proguide_forum
Still the error message. What am I missing???