Hi
assuming the following records:
field1(name): m2babaey
filed2(hisemailids): m2babaey1@yahoo.com, m2babaey2@yahoo.com, m2babaey3@yahoo.com
now can we do anything to display:
m2babaey: m2babaey1@yahoo.com
m2babaey: m2babaey2@yahoo.com
m2babaey: m2babaey3@yahoo.com
seperating text
Moderator: General Moderators
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Well if it's all in one field, you'll have to process it through PHP, which isn't even hard in the least.m2babaey wrote:of course m2babaey123 are not actual. but field 2 will be some email addresses posted from a textarea and I'd like to list them the way i said
Code: Select all
$emails = explode(',', $result->field2);
foreach($emails as $email)
{
echo $result->field1 . ': ' . trim($email) . "<br />\n";
}