View Single Post
  #1 (permalink)  
Old 11-01-2008, 06:34 AM
edhan's Avatar
edhan edhan is offline
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Singapore
Posts: 701
edhan RepRank 3edhan RepRank 3
Question How to extract emails from table?

Hi

How can I write in php to extract emails corresponding to a database table from the usernames?

Example:

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!
Reply With Quote