本文整理汇总了PHP中Validation::userNameToID方法的典型用法代码示例。如果您正苦于以下问题:PHP Validation::userNameToID方法的具体用法?PHP Validation::userNameToID怎么用?PHP Validation::userNameToID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Validation
的用法示例。
在下文中一共展示了Validation::userNameToID方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: includeProfile
public function includeProfile($profileUpdate)
{
$obj_vali = new Validation();
$sess_obj->checkAdminLoged();
$user_name = $_POST['user_name'];
$user_id = $obj_vali->userNameToID($user_name);
$obj_reg = new Register();
$get_profile = new ToolTip();
$obj_sponser = new Validation();
$u_name = $_POST['user_name'];
$user_id = $obj_sponser->userNameToID($u_name);
$table_prefix = $_SESSION['table_prefix'];
$user_details = $table_prefix . "user_details";
$ft_individual = $table_prefix . "ft_individual";
$qr = "select u.* from {$user_details} AS u\n INNER JOIN {$ft_individual} AS f ON u.user_detail_refid=f.id\n where user_detail_refid='" . $user_id . "'";
//echo $qr;
$details = $get_profile->getUserData($qr);
$sponser = $obj_sponser->getSponserIdName($u_name);
}
示例2: count
$count = count($obj_payout->actiavtion_details);
//echo "From: $from_date To: $to_date";
if ($count >= 1) {
$doc[1][0] = "No";
$doc[1][1] = "Username";
$doc[1][2] = "Name";
$doc[1][3] = "Referral UserID";
$doc[1][4] = "Referral Full Name";
$doc[1][5] = "Mobile No";
$doc[1][6] = "Email";
$count = $count + 2;
$j = 0;
$k = 0;
for ($i = 2; $i < $count; $i++) {
$user_name = $obj_payout->actiavtion_details["detail{$k}"]["user_name"];
$user_id = $obj_sponser->userNameToID($user_name);
$table_prefix = $_SESSION['table_prefix'];
$user_details = $table_prefix . "user_details";
$qr = "select* from {$user_details} where user_detail_refid='" . $user_id . "'";
//echo $qr;
$details = $get_profile->getUserData($qr);
//print_r($details);
$name = $details["detail1"]["name"];
$address = $details["detail1"]["address"];
$land = $details["detail1"]["land"];
$country = $details["detail1"]["country"];
$state = $details["detail1"]["state"];
$district = $details["detail1"]["district"];
$mobile = $details["detail1"]["mobile"];
$email = $details["detail1"]["email"];
$acnumber = $details["detail1"]["acnumber"];
示例3: checkUser
public function checkUser($user_name)
{
require_once 'validation.php';
$obj_val = new Validation();
$flag = false;
$user_name = mysql_real_escape_string($user_name);
$user_id = $obj_val->userNameToID($user_name);
if ($user_id) {
$flag = 1;
}
return $flag;
}
示例4: TreeView
require_once '../class/Database.php';
require_once '../class/Validation.php';
require_once '../class/Tree.php';
require_once '../class/TreeView.php';
//require_once "../class/TreeViewAs.php";
//$obj_tree_view = new TreeViewAs();
$obj_tree_view = new TreeView();
$obj_tree = new Tree();
$obj_val = new Validation();
$user_id = $sess_obj->sess_user_id;
$id = $_GET["id"];
$obj = new Database();
$obj->connectDB();
if (isset($_POST['go_submit'])) {
$go = $_POST['go_id'];
$go = $obj_val->userNameToID($go);
$child_id = $go;
$go = getEncrypt($go);
if ($user_id < $child_id) {
$status = $obj_tree->userDownlineUser($child_id, $user_id);
if ($status == "yes") {
echo "<script>document.location.href='ft_chart.php?id={$go}';</script>";
} else {
$go = getEncrypt($user_id);
echo "<script>document.location.href='ft_chart.php?id={$go}';</script>";
}
} else {
$go = getEncrypt($user_id);
echo "<script>document.location.href='ft_chart.php?id={$go}';</script>";
}
}
示例5: checkLeg
public function checkLeg($sponserleg, $sponser_user_name)
{
require_once 'validation.php';
$obj_val = new Validation();
$sponserleg = mysql_real_escape_string($sponserleg);
$sponser_user_name = mysql_real_escape_string($sponser_user_name);
$sponserid = $obj_val->userNameToID($sponser_user_name);
return $obj_val->isLegAvailable($sponserid, $sponserleg);
}
示例6: getnameToId
public function getnameToId($user_name)
{
require_once 'Validation.php';
$OBJ_VALI = new Validation();
$user_id = $OBJ_VALI->userNameToID($user_name);
return $user_id;
}