General discussion

Locked

Problem with php array to sort two db fields

By info ·
I am stuck creating an array to merge to db fields together. The two strings are compared and if the same entries are found, then only one should display.

code:
if ($list_item == $countryC)
//echo "<a href=\"prop_region.php?continent=$continent&country=$list_item\">$list_item ($num)</a><br>";
{

while (array_unique($list_item, $countryC));

echo "<a href=\"prop_region.php?continent=$continent&country=$list_item\">$list_item ($num)</a><br>";
}
else
{
echo "<a href=\"prop_region.php?continent=$continent&country=$list_item\">$list_item </a><br>";

This doesn't work, but hopefully, you can see what i'm trying to do.

Thanks

This conversation is currently closed to new comments.

0 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Software Forum
0 total posts (Page 1 of 1)  

Related Discussions

Related Forums