$myuserid = $ses["user_id"];
if ($myuserid) { ?>
Is your product listed on our web site but not showing up under your account? No problem! Just search for it here and then choose it from the list of results, if it's under someone elses account, you can do a transfer of ownership request. If you have any problems please contact us.
if ($keyword) {
$sqlquery = "SELECT link_id, link_name, cust7, link_user FROM inl_links LEFT JOIN inl_custom ON inl_links.link_cust=inl_custom.cust_id where link_name LIKE '%$keyword%' order by link_name";
$result = mysql_query($sqlquery);
$number = mysql_num_rows($result);
if (!$result)
die("Please try again");
echo "";
$i = 0;
?>
if ($number == 0) { ?>
No Results, please try again.
} else { ?>
} ?>
if ($product)
{
$result = mysql_query("select * from inl_links LEFT JOIN inl_custom ON inl_links.link_cust=inl_custom.cust_id LEFT JOIN inl_users ON inl_links.link_user=inl_users.user_id where link_id = '$product'");
if (!$result)
die("SQL result failed");
$num = mysql_num_rows($result);
while ($row = mysql_fetch_array($result))
{
$product_id = $row["link_id"];
$userid = $row["link_user"];
$owneremail = $row["email"];
$product_name = $row["link_name"];
$user_name = $row["user_name"];
$product_version = $row["cust7"];
}
?>
if ($user_name) { ?>
} ?>
} else { ?>
if ($agreed) { ?>
$result = mysql_query("update inl_links set link_user = '$myuserid' where link_id = '$product'"); ?>
if (!$result) { ?>
Query Failed, check code.
} else { ?>
Record Link Successful!
click >here view your products.
}
} else { ?>
=$product_name?> =$product_version?> is not linked to any user accounts.
You may only link this product to your account if you are the owner.
Do you wish to link this product to your account?
} ?>
} ?>
} ?>
} else { ?>