im tryin to pull the data of ip in every user in sql to display the counttry flag in each profile but it wont show, can anyone help me to sort this out
CODE $uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id='".$who."'"));
echo "Current IP: $uipadd[0]
";
$des_ip .= $uipadd[0];
$q = mysql_query("SELECT cc, network FROM ibwf_carrier WHERE num_min <= '".$des_ip."' ORDER BY num_min DESC, num_max ASC LIMIT 1") or die("MySQL Error: ".mysql_error());
$info = mysql_fetch_array($q);
$cc=$info[0];
echo 'Network: '.$info[1].'
';
include("countries.php");
echo 'Country: '.$countries[$cc].' External image (may be gone)
';