product_bk.php 2.12 KB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
</head>

    <body>
    
    <?php

    $userid = base64_decode($_GET['userid']);
    $cust_name = base64_decode($_GET['cust_name']);
    $cust_id = base64_decode($_GET['cust_id']);
    $mobile_number = base64_decode($_GET['mobile_number']);
    $emailid = base64_decode($_GET['emailid']);
    $product = base64_decode($_GET['product']);
    $ip= base64_decode($_GET['ip']);
    $username=base64_decode($_GET['username']);
    $recordid =base64_decode($_GET['recordid']);
    $sessionid = base64_decode($_GET['sessionid']);
    $campaign = base64_decode($_GET['campaign']);

    /* $userid = $_GET['userid'];
    $cust_name = $_GET['cust_name'];
    $cust_id = $_GET['cust_id'];
    $mobile_number = $_GET['mobile_number'];
    $emailid = $_GET['emailid'];
    $username=$_GET['username'];
    $ip= base64_decode($_GET['ip']);
    $recordid =$_GET['recordid'];
    $sessionid = $_GET['sessionid'];
    $campaign = $_GET['campaign'];*/
    //echo $ip;

    $link_central = mysqli_connect("10.3.177.14", "root", "yb9738z", "kstych_flexydial");
    $location="";    
    $locationlist = $link_central->query("select location,id from server_details where server_ip='$ip'");
     while($locationuser=$locationlist->fetch_object()){
      $location=$locationuser->location;
     }
    mysqli_close($link_central);
   
    $link = mysqli_connect("$ip", "root", "yb9738z", "kstych_flexydial");
    
    $productlist = $link->query("select products from leadform_products");
    
    echo "<center><h4>Product List</h4></center><br>";
    while($product=$productlist->fetch_object())
    {
    	
    	echo "<hr><b><a href='https://10.3.177.14/register_form.php?userid=$userid&product=".base64_encode($product->products)."&cust_name=$cust_name&cust_id=$cust_id&mobile_number=$mobile_number&emailid=$emailid&ip=".base64_encode($ip)."&username=$username&recordid=$recordid&sessionid=$sessionid&campaign=$campaign' target='_blank'>$product->products</a></b> <br> ";
    }
    mysqli_close($link); 
	?>
    </body>
    
</html>