How can I write in php to extract emails corresponding to a database table from the usernames?
Table name as records
Fields are: userid, username, password, emails, description, height, weight
Let says a few usernames like peter, william, charles are selected as array from the table. How do I extract their emails from the same table? The usernames selected are random and are displayed. Now I want to select the corresponding emails with these usernames, how can I accomplish this?
Any help will be appreciated. Thanks!