简体   繁体   中英

Is this the right way to display data from a table in my database?

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. 码

Correct format is:

mysql_query($query, $resource)

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

http://th1.php.net/mysql_query

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM