Re: PHP+MYSQL: unable to select database

2001-12-10 Thread Kevin Donnelly
Hi Josep We have to be clear about definitions. You seem to be making a couple of mistakes here: 1 - guestbook.sql is not the db, but probably a script to create the db (you can check by opening it in a text-editor - it will probably have a CREATE TABLE statement at the top, then the field defin

Re: PHP+MYSQL unable to select database

2001-12-10 Thread Benjamin Pflugmann
Hi. First, please avoid cross-posting. Try to narrow down the problem by trying from the command line client (i.e. try to rule out PHP as source of the problem). If that doesn't work, try the PHP list. If you are successful, it belongs to the MySQL list (as PHP is no longer part of the problem)

Re: PHP+MYSQL: unable to select database

2001-12-10 Thread Kevin Donnelly
One of three issues: 1 - the db is not set up correctly; 2 - the user is not set up correctly; 3 - the PHP script is not calling the db properly - this could be due to wrong syntax, misnaming of the db table, or incorrect username parameters. You would need to post some more info, in particular