This looks like an odd loop. I'd use a UNION for this, seeing as the data from each table is the same type/name.
(SELECT `domain`, 'w3' as source FROM w3)
UNION
(SELECT `domain`, 'worth' as source FROM worth);
ORDER BY `domain`
That'll give you a mix, with duplicates next to each other (below).
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
mysql_fetch_assoc($w3db), change $w3db to $w3 or use @ardav method. It is better way.
Zero13
Practically a Master Poster
624 posts since Jan 2009
Reputation Points: 120
Solved Threads: 139