source code of MES Data
来源:互联网 发布:ubuntu17.10安装软件 编辑:程序博客网 时间:2024/05/02 02:15
<HTML><HEAD><TITLE>TELOGS</TITLE></HEAD><BODY><?php/* command line parameters: wget "http://localhost/query.php?action=query&sn=123" -O get1.html */$act=$_GET["action"];/* http://localhost/query.php?action=query&sn=123 */if ($act == "query"){$serialnumber=$_GET["sn"];$con = mysql_connect("localhost","root","123456");if (!$con){die('Could not connect: ' . mysql_error());}mysql_select_db("test", $con);$sql = "SELECT * FROM testlogs where Serial_number='$serialnumber'";$result = mysql_query($sql);if (mysql_num_rows($result) != "0" ){while($row = mysql_fetch_array($result)){echo $row['Serial_number'] . "|" . $row['Mac_addr']."|". $row['OA_KEY']."\n";}}else{echo "No data of this serial number=".$serialnumber;}mysql_close($con);}?><?php/* http://localhost/query.php?action=add&sn=123&mac=eeee&oakey=123 */if ($act == "add"){$serialnumber=$_GET["sn"];$macaddr=$_GET["mac"];$oakey=$_GET["oakey"];$con = mysql_connect("localhost","root","123456");if (!$con){die('Could not connect: ' . mysql_error());}mysql_select_db("test", $con);$sql="INSERT INTO testlogs (Serial_number, Mac_addr, OA_KEY) values ('$serialnumber','$macaddr','$oakey')";if(mysql_query($sql)){echo "Add data Passed";}else{echo "Add data failed";}mysql_close($con);}?></BODY></HTML>
0 0
- source code of MES Data
- DSS Source Code Analyse (16) - Data Flow of classical VOD
- DSS Source Code Analyse (17) - Data Flow of classical Live
- DSS Source Code Analyse (18) - Data Flow of classical Relay
- Source Code of exe2com.
- Source Code of exe2com
- Source code of CIH
- Study of Source code
- Source code of ZMRP_VSS_CLEANUP
- source code of CV
- Use of Legacy Source Code
- Source Code of Java - String
- Source Code of Java - StringBuffer
- Source Code of Java - Boolean
- Source Code of Java - Integer
- Source Code of Java - Long
- Source Code of IIS5 .Printer Exploit
- learn from tutorials of source code
- 【黑马程序员】泛型(十三)
- spool命令、创建一个表,创建并且copy表,查看别的用户下的表,rowid行地址 索引的时候使用,表的增删改查,删除表,oracle的回收站
- 树的度和深度
- Win32汇编学习笔记之基础篇
- C#设计模式之单例模式
- source code of MES Data
- 海量数据处理之分而治之/hash映射 + hash统计 + 堆/快速/归并排序
- 【白话经典算法系列之二】 直接插入排序的三种实现
- String、StringBuffer与StringBuilder之间区别
- 软件工程3——第一章 我的自述
- APUE(UNIX环境高级编程第二版)函数归纳(3-7章)
- 作业1
- 【iOS开发-44】通过案例谈iOS代码重构:合并、格式化输出、宏变量、利用数组字典存储数据,以及利用plist的终极知识
- 热点Buffer 及其 相关对象