开发者

MySQL SELECT from PHP

开发者 https://www.devze.com 2023-01-17 17:51 出处:网络
I have one table ( members ) and five columns ( username , passw开发者_StackOverflow社区ord , FirstName , LastName , Email )

I have one table ( members ) and five columns ( username , passw开发者_StackOverflow社区ord , FirstName , LastName , Email )

I need to get the Email for the user admin. How would this be done?


SELECT Email FROM members WHERE username = 'admin';


Do you know what the username is of the admin? If so you can do the following:

SELECT `Email`
FROM `members`
WHERE `username` = {$username}
0

精彩评论

暂无评论...
验证码 换一张
取 消