Re: Problems when I insert a record into a mysql table...
| From: | Catherine Pinatiello | Date: | Thu, 17 Oct 2002 23:17:56 +0000 |
| Subject: | Re: Problems when I insert a record into a mysql table... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120431@lists.php.net to get a copy of this message | ||
Jorge E. Albores Figueroa wrote:
Hi thanks, Ok, the error is: died because No Database Selected and my code is this... <?php $dbh=mysql_connect ("localhost", "marin_rcmg", "rcmg2002") or die ('I cannot connect to the database.'); mysql_select_db ("marin_servicios");Try doing this: mysql_select_db ("marin_servicios", $dbh) or die ("Cannot connect to marin_servicios database!");