For more information about the value of php in the database

Source: Internet
Author: User
For the value of php in the database, please advise your employee management system database name: empsys, which contains two tables: emp and admin.
The following code is available:




Please advise me what is wrong! Why cannot I get the value?


Reply to discussion (solution)

Change mysql_fetch_row to mysql_fetch_assoc or mysql_fetch_array.

If you want to apply mysql_fetch_assoc in database ID mode, change the while loop.

If you want to use mysql_fetch_row
So? The following
$ Row ['id'], $ row ['name'], $ row ['Grad']
Want to change?
$ Row [0], $ row [1], $ row [2] and so on? Push.

Thank you. you have done it as Prompted. thank you very much.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.