Thanks for your suggestions.
I do have the correct server name (tried both 127.0.0.1 and host name). As to the MySQL libraries, I used the PHP-MySQL libraries that came with Mandrake 8.1.
At the shell, I could query the database, so I know the server is running. In fact, the mysql_connect() did give me a valid identifier (print $link gave me a positive integer). But the mysql_query() didn't return anything at all!
Here are my platform info:
(1) Mandrake Linux 8.1
(2) PHP 4.0.6
(3) MySQL 3.23.41
(4) Apache 1.3.20
Could you give me more ideals as to where to start looking? Thanks.