I need help php country cod

Discussion in 'PHP' started by zeesmarty1, Jun 5, 2010.

  1. #1
    Hi all
    I have a script i want to use this script in country code
    so please tell me how can i use

    <?php
    include "admin/inc/func.php";
    $mssg = "";
    if (ch_input('sub_mit') == "Yes")
    {
    $sql = "Select * from tbl_admin where ip_pass = '".ch_input('ip_pass')."'";
    $qry = qry_run($sql);
    if ($qry)
    {
    $num_rs = num_rec($qry);
    if ($num_rs > 0)
    {
    $_SESSION["login_auth"] = "Yes";
    header("Location: index.php");
    }else{
    $mssg = "No";
    }
    }else{
    $mssg = "No";
    }
    }
    ?>
     
    zeesmarty1, Jun 5, 2010 IP
  2. mehmetm

    mehmetm Well-Known Member

    Messages:
    134
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #2
    what do you mean ??
     
    mehmetm, Jun 5, 2010 IP
  3. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #3
    Whether you are using IP to detect the country code??
     
    roopajyothi, Jun 5, 2010 IP