domain_id | domain_name | client_id |
123 | dunno.com | 77 |
124 | great.com | 77 |
125 | hmmm.com | 77 |
/ Select the domain names through the client_id/
$query_domains = mysql_query("SELECT domain_name FROM domain_names WHERE client_id = '$client_id'");
I would like...it to be....
Something like...
The code auto-detects how many domains there are under
the client and assigned variables accordingly.
All clients have different number of domains under he/her.
Say the code detects that Mike has 4 domains.
How do I go about assigning EACH ROW of the column "domain_name" to a corresponding variable.
I don't want to get the all domains dumped into a single variable.
I would like each domain to be assigned its own variable.
$domainONE = dunno.com
$domainTWO = great.com
$domainTHREE = hmmm.com
I been stuck at this for a few days now and all the code I tried doesn't work. Please help!