简体   繁体   中英

How do I retrieve and display user details from mysql database in android studio?

So I have a database with a 'user' table that holds user details such as their username, password, age and full name (as well as a userID that auto increments). I was able to get my application to allow for a user registration, sending inputted details into the aforementioned table in my database and have been able to login to the app using those credentials. However I want to be able to show such details on a user page in my app. How would I do this? I am using volley library and json to interact with my php file.

如果您的程序能够调用服务器并读取json数据,则以纯文本格式打印json应该可以。

echo json_encode($data)

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