function debug() {
global $connect, $selectdb, $mysql_connect, $mysql_select_db, $clicky;
// This may not be a very good debugger, but it will do :P
// Was it the overall connecting to the User and such the problem?
if(!$connect) {
echo "There was a problem connecting to MySQL here is some debugging information:
MySQL Error: ".$mysql_connect."
";
if(!isset($clicky['db_host']))
echo "Your MySQL Host isn't set to anything
";
if(!isset($clicky['db_user']))
echo "Your DB Username is not filled in
";
if(!isset($clicky['db_pass']))
echo "No MySQL Username password is filled in
";
echo "Tried all that and this is still appearing? Make sure your password for your username is right, and typed correctly. If this problem presists, contact your host
";
}
if(!$selectdb) {
echo "There was a problem selecting your database, here is a bit of information to help you:
MySQL Error: ".$mysql_select_db."
";
if(!isset($clicky['db_name']))
echo "You haven't filled in a MySQL DB
";
echo "Tried this and problem still presists? Make sure you have it spelt right.";
if($connect)
echo "We also see that you have connected to MySQL but couldn't choose this database, make sure that the user and database are assigned to each other";
}
}