当前位置: 首页 > news >正文

国内建站源码/网络营销试卷

国内建站源码,网络营销试卷,四川省营山县西城建筑公司网站,亚马逊在哪个网站做推广我试图限制用户只能看到他/她自己的细节。我通过URL栏传递一个PHP变量,因此它只显示自己的信息,但是如果他们编辑了ID号码,他们可以查看其他人的详细信息?我现在的代码显示在这里:$managerID preg_replace(#[^0-9]#i,…

我试图限制用户只能看到他/她自己的细节。我通过URL栏传递一个PHP变量,因此它只显示自己的信息,但是如果他们编辑了ID号码,他们可以查看其他人的详细信息?

我现在的代码显示在这里:

$managerID = preg_replace('#[^0-9]#i', '', $_SESSION["id"]);

$manager = preg_replace('#[^A-Za-z0-9]#i', '', $_SESSION["manager"]);

$password = preg_replace('#[^A-Za-z0-9]#i', '', $_SESSION["password"]);

include "../adminscripts/connect_to_mysql.php";

$sql = mysql_query("SELECT * FROM Users WHERE id='$managerID' AND username='$manager' AND password='$password' AND role='Student' LIMIT 1");

$existCount = mysql_num_rows($sql);

if ($existCount == 0) {

header("location: http://www.zuluirminger.com/SchoolAdmin/index.php");

exit();

}

?>

// Get a list of all items and display them in alphabetically

include "../adminscripts/connect_to_mysql.php";

//Check to see the URL variable exists in the database

$dynamicList = "";

if (isset($_GET['id'])) {

include "../adminscripts/connect_to_mysql.php";

$id = preg_replace('#[^0-9]#i', '', $_GET['id']);

***********************************************************************************

***********************************************************************************

// If the ID does not exist the display this message.

$sql = mysql_query("SELECT * FROM StudentAttendance WHERE StudentID='$id' ORDER BY AttendanceDate DESC");

$productCount = mysql_num_rows($sql);

if ($productCount > 0) {

while ($row = mysql_fetch_array($sql)) {

$AttendanceDate = $row["AttendanceDate"];

$AttendanceStatus = $row["AttendanceStatus"];

$Notes = $row["Notes"];

$dynamicList .= '

' . $AttendanceDate . '' . $AttendanceStatus . '' . $Notes . '';

}

} else {

$AttendanceDate = "nil";

$AttendanceStatus = "nil";

$Notes = "nil";

}

} else {

echo "Something is missing which means we can't display this page! Sorry for the inconvenience and please try again later!";

exit();

}

mysql_close();

?>我试着在以上代码中放置星号的地方放置以下if语句...

if ($id != $managerID) {

$id = $managerID;

}但是,这似乎没有工作......我把它放在正确的地方?据我可以告诉我已经使用了正确的变量?

任何帮助将不胜感激!

http://www.jmfq.cn/news/4752289.html

相关文章:

  • 大宗商品交易平台软件排行/日照网站优化公司
  • 西宁网站开发多少钱/企业网站类型有哪些
  • 做租凭网站是经营性吗/上海谷歌推广
  • 微信小商店官网入口/济南seo整站优化价格
  • 南通优化网站公司/排行榜哪个网站最好
  • 国外专门做视频翻译网站/web成品网站源码免费
  • 免费做deal的网站/网页平台做个业务推广
  • 上海市建设工程安全协会网站/sem营销是什么意思
  • 江苏建设网/搜索引擎优化排名seo
  • 怎么切页面做网站/seo资源网站 排名
  • 郯城做网站/自己做seo网站推广
  • 高清视频服务器内存/成都网站seo公司
  • 做海报的参考网站/cps广告联盟网站
  • 中国做网站公司/免费发布活动的平台
  • 牟平网站制作/威海seo公司
  • wordpress仿58同城/seo 推广怎么做
  • 河南省内 在哪个网站做商检表/百度指数官网
  • 帮别人做网站的合作协议/seo检测优化
  • 微信小程序开发模板网站/整合营销传播案例分析
  • wordpress语言包下载地址/百度推广优化师
  • 做肮脏交义的网站/收录平台
  • 建筑网址导航/宁波seo外包服务
  • 大连建设网站公司/世界十大搜索引擎及地址
  • 武汉商业网站/搜索引擎技巧
  • 怎么做外语网站/seo研究中心论坛
  • wordpress目的/长沙快速排名优化
  • 微信公众号h5商城网站开发/百度联盟是什么
  • 网站之间如何交换友情链接/新媒体营销六种方式
  • 网站建设一流公司/学历提升哪个教育机构好一些
  • 网站设计建设公司/短视频运营公司