Hello,

I am having an issue connecting to a MySQL database. I've made a script that
installs itself to a MySQL database (creates all the tables and such) and
then the script uses the tables to store information and whatever else it
may have to do.

The problem is, the install works just fine, but when I try to access the
database through the script later on, it outputs the following:

Database error: cannot use database anime-soup_com_-_chatting
MySQL Error: 0 ()
Session halted.

I told it to do this when there is a MySQL error and it seemed to have done
it just fine. Here's the function in the class I created to tell me about an
error:

function halt($msg) {
   printf("</td></tr></table><b>Database error:</b> %s<br>\n", $msg);
   printf("<b>MySQL Error</b>: %s (%s)<br>\n",
     $this->Errno,
     $this->Error);
   die("Session halted.");
  }

Any ideas what this error means and how to fix it? Is it an error on the
MySQL side of things or on the script's side? Thanks in advance!

Thanks,
Stephen Craton

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to