Re: Lost connection to mysql db. Plus I could use some help
| From: | robleyd at ozemail dot com dot au | Date: | Mon, 24 Jan 2005 01:58:41 +0000 |
| Subject: | Re: Lost connection to mysql db. Plus I could use some help | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-207105@lists.php.net to get a copy of this message | ||
> Good morning. In Windows XP, MYSQL, PHP and using the following code
> snippet:
>
> <?
> $conn = mysql_connect('localhost', 'odbc', '') or die
> ("Can't Connect To
> Database");
> $db = mysql_select_db("wwpbt", "$conn") or die ("Can't Select
> Database");
Change the above line to the following for a more useful error message from mysql:
$db = mysql_select_db("wwpbt", "$conn") or die ("Can't Select
Database". mysql_error());
> $echo ("Congratulations - you connected to MySQL");
> ?>
This message was sent through MyMail http://www.mymail.com.au