Re: Error help needed
| From: | Bruno Gimenes Pereti | Date: | Fri, 07 Dec 2001 18:50:35 +0000 |
| Subject: | Re: Error help needed | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-14873@lists.php.net to get a copy of this message | ||
it looks like the command mysql_db_query() is not used any more. Try to use
mysql_select_db() and mysql_query() instead:
$conn = mysql_connect($host, $user, $password);
mysql_select_db($db, $conn);
$result = mysql_query($sql);
[...]
close($conn);
Hope it helps...
Bruno.
----- Original Message -----
From: "Chris Payne" <chris@planetoxygene.com>
To: <php-db@lists.php.net>
Sent: Friday, December 07, 2001 7:28 PM
Subject: [PHP-DB] Error help needed
Hi there everyone,
I've just reinstalled Windows 2000 for the second time, and I am still
getting errors when I try to read MySQL databases - especially from within
Myadmin (But also through other code I have written myself).
I'm using the latest build of PHP and the latest build of Perl and MySQL -
and I keep getting this error when I try to view records inside the DB:
Warning: mysql_db_query is deprecated; use mysql_select_db() and
mysql_query() instead in c:\inetpub\wwwroot\myadmin\lib.inc.php on line 506
0
The line number differs obviously for each entry I am trying to display.
Does anyone have any ideas/thoughts on this?
Thanks for your help.
Chris Payne
chris@planetoxygene.com
www.planetoxygene.com