General discussion
July 4, 2006 at 11:53 AM
info

Problem with php array to sort two db fields

by info . Updated 20 years, 3 months ago

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 “$list_item ($num)
“;
{

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

echo “$list_item ($num)
“;
}
else
{
echo “$list_item
“;

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

Thanks

This discussion is locked

All Comments