if (!isset($_SESSION)) {
session_start();
}
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$colname_rsUser1 = '20161021';
if(isset($_SESSION['MM_Username']))
$colname_rsUser1=$_SESSION['MM_Username'];
mysql_query('SET NAMES UTF8');
mysql_select_db($database_connjxkh, $connjxkh);
$query_rsUser = sprintf("SELECT UserInfo.Account, UserInfo.UserID, UserInfo.UserName, UserInfo.Photo, DeptInfo.DeptName, LevelInfo.LevelName FROM DeptInfo, LevelInfo, UserInfo WHERE UserInfo.DeptID=DeptInfo.DeptID AND LevelInfo.LevelID=UserInfo.Rank and Account = %s ", GetSQLValueString($colname_rsUser1, "text"));
$rsUser = mysql_query($query_rsUser, $connjxkh) or die(mysql_error());
$row_rsUser= mysql_fetch_assoc($rsUser);
?>
河南城建学院干部考核系统--个人信息我的信息
">
用户名:
echo $row_rsUser["Account"];
?>
真实姓名:
echo $row_rsUser["UserName"];
?>
部门:
echo $row_rsUser["DeptName"];
?>
职级:
echo $row_rsUser["LevelName"];
?>
一键复制
编辑
Web IDE
原始数据
按行查看
历史