Get Ip Add Of User In Lavalair Script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Get Ip Add Of User In Lavalair Script

    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

    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'> $uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
    echo "Current IP: $uipadd[0]
    ";
    $des_ip .= $uipadd[0];
    $q = mysql_query("SELECT `cc`, `network` FROM `ibwf_carrier` WHERE `num_min` <= &#39;".$des_ip."&#39; 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 &#39;Network: &#39;.$info[1].&#39;
    &#39;;
    include("countries.php");
    echo &#39;Country: &#39;.$countries[$cc].&#39; [img]../flags/&#39;.strtolower($cc).&#39;.png[/img]
    &#39;;</div>
Working...
X