Yes, it's wrong.
First, connect.
http://us3.php.net/mysql_connect
Then, select the database.
http://us3.php.net/mysql_select_db
Then construct your query like this:
$query = "SELECT * FROM users WHERE name=$POST['name']";
and pass it to mysql using mysql_query().
It returns a resource; you must loop from it with one of the mysql_fetch family of functions (your choice).
The database is NOT named in the query.
"SELECT *" says "get me all of the columns in this table" and the WHERE clause is obvious. Watch those quotation marks.