Home > php教程 > php手册 > 12306账号泄露查询工具,sae部署,稳定可用

12306账号泄露查询工具,sae部署,稳定可用

WBOY
Release: 2016-06-06 19:37:10
Original
1437 people have browsed it

今天上午刚同事发来的数据。做了一个: http://www.atool.org/12306.php 代码很简单,主要就是数据文件导入到数据库中就好了~不知道贴什么代码,就贴数据库查询的这个类吧~ 无 ?phprequire_once 'mysql.class.php';/** * 仅供参考 */class D12306Dao extends

今天上午刚同事发来的数据。做了一个:

http://www.atool.org/12306.php


代码很简单,主要就是数据文件导入到数据库中就好了~不知道贴什么代码,就贴数据库查询的这个类吧~
<?php
require_once 'mysql.class.php';
/**
 * 仅供参考
 */
class D12306Dao extends Mysql {

    public function __construct() {
        parent::__construct();
    }

	//邮箱
	public function find_by_email($keyword) {
        $sql = "select name from d12306 where email = '$keyword';";
        return $this->exec_query($sql);
    }
	//身份证
	public function find_by_uid($keyword) {
        $sql = "select name from d12306 where uid = '$keyword';";
        return $this->exec_query($sql);
    }
	//账号
	public function find_by_userid($keyword) {
        $sql = "select name from d12306 where userid = '$keyword';";
        return $this->exec_query($sql);
    }
	
    public function insert($email, $userid, $name, $uid, $password, $phone) {
        $sql = "insert into d12306(email, userid, name, uid, password, phone) values('$email', '$userid', '$name', '$uid', '$password', '$phone');";
        return $this->exec_update($sql);
    }
}
?>
Copy after login
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template