mysql/php query - wrox
| From: | Anthony Ritter | Date: | Mon, 03 Feb 2003 03:00:25 +0000 |
| Subject: | mysql/php query - wrox | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-134077@lists.php.net to get a copy of this message | ||
Working on:
Win 98 / mysql 3.23.55 / php 4
I installed mysql 3.23.55 and wanted to check the user table in the mysql
db.
The query was:
SELECT User FROM user WHERE host='localhost';
The output was:
x------------x
user |
x------------x
| |
| |
root |
x------------x
2 rows in set
.....................................
In the Wrox book on PHP (page 396) by running that query it is:
x----------x
user |
x----------x
root |
x---------x
1 row in set
........................................
I'm not sure why I'm getting two rows.
Many thanks for your assistance.
TR