这是从我的数据库中的表中显示数据的正确方法吗?

This is the coding I tried to use to connect to my database in order to display some information to help me on my admin page. What did I do wrong?

Edit: When I load the page it was suppose to display the data from my tables, however the page is of course white. Code

Correct format is:

mysql_query($query, $resource)

You have it the other way round. Notwithstanding any other errors.

http://th1.php.net/mysql_query