Ok here is the problem, I should know this but I am completely lost... haven't done database work for a while now.
I am doing this, trying to get the email address of all the rows in the table and then assign it to a variable like so:
DATABASE TABLE:
ID | NAME | EMAIL
1 | ABC | 1@aol.com
2 | DEF | Me@netsock.com
3 | XYZ | you@ursite.net
I need the variable after the query loops to have a value like this
$var = '1@aol.com,me@netsock.com,you@ursite.net';
is that easy?