im trying to mod my coppermite photo gallery and am having a little trouble. i managed to get the code that lets me put php code in my template.
the problem is when i try and call another database for my shoutbox i get an error like this....
and here is the code that im sticking in my template.
i also tried taking out this little bit of code out....Code:// Select the jokes database if (! @mysql_select_db("f8klan") ) { echo( "<p>Unable to locate the joke " . "database at this time.</p>" ); exit(); } // Request the text of all the jokes $result = @mysql_query("SELECT * FROM `shoutbox` ORDER BY `id` DESC LIMIT 0 , 2 "); if (!$result) { echo("<p>Error performing query: " . mysql_error() . "</p>"); exit(); } // Display the text of each joke in a paragraph while ( $row = mysql_fetch_array($result) ) { echo("<p><b><em>" . $row["shoutdate"] . "</em></b><br> " . $row["shouttext"] . "<br> <b>" . $row["shoutname"] . "</b></p>"); } ?>
but am getting this error.Code:// Select the jokes database if (! @mysql_select_db("f8klan") ) { echo( "<p>Unable to locate the joke " . "database at this time.</p>" ); exit(); }
i know the problem is that i cant call 2 different databases at one time. does anybody know a way around this?Code:Error performing query: Table 'f8pics.shoutbox' doesn't exist






Bookmarks