开发者

MySQL SELECT from PHP

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜