Have you checked the docs? Have you double-checked the username, password and permissions? Have you added " or die(mysql_error())" to your database connection function? If this site is remote, does your username/password have rights to access the database?
Good luck - Miles Thompson At 11:58 AM 12/10/2001 +0100, josep wrote: >I can't select a database from a php script. > >I've set privileges in both the user and the data base tables >and I've done FLUSH PRIVILEGES; > >WHY? > >JOSEP. > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]