Hi,
I am trying to create a means to dynamically display some links to other websites on my own website.
I have basically created 2 tables.
One is called domains
it is made up of two fields, an auto incremented id
and the domain name, so basically it would read as: “1 example.com”
The other table is called links’ it is made up of a few fields, its own auto incremented id, a field called domainId, a field that holds a link to the page on the domain, and a little description about the link.
What I am trying to do is this:
$loopResult.= '
<ul class="bymodel-dllinks">
<li><a href="'.$linkAd.'" target="_tab">'.$linkDesc.' '.$linkDomain.'</a></li>
</ul>
';
$linkDomain contains the domainId of the domain in the first table.
How do i get $linkDomain to display the domain name in first table that matches the set $domainId? So essentially in my example a value of “1” would display as “example.com”
I can get it to display the domain id, but not the domain name, whats the trick?