zoukankan      html  css  js  c++  java
  • php 微擎

    pdo_insert('ewei_shop_member', $data);
    $my = array('agentid' => '4102');
    // pdo_update(表明,'修改的值','条件');
    $mystatus = pdo_update('ewei_shop_member', $my, array('id' => '4122'));

     $sta2 = pdo_update('ewei_shop_member',array('credit2'=>$new_credit2) , array('id' => $myurl));

    $mymember = pdo_fetch('select id,openid,mobile,pwd,salt,credit2 from ' . tablename('ewei_shop_member') . ' where id=:id ', array(':id' => 4127));

    $mymember = pdo_fetch('select id,agentid,mobile from ' . tablename('ewei_shop_member') . ' where id=4127');
    // var_dump($mymember);

    //增加一次用户的错误登录次数,两次变为2即可

    pdo_update('users_failed_login', array('count +=' => 1),array('username' => 'qiuweinan'));

    ===========

    $servername = "localhost:3306";
    $username = "jiujifenxiao_co";
    $password = "8FyMtJJJcT";

    // 创建连接
    $conn = mysql_connect($servername, $username, $password);

    // 检测连接
    if ($conn->connect_error) {
    die("连接失败: " . $conn->connect_error);
    }
    $result = mysql_select_db("jiujifenxiao_co", $conn);
    if (!$result) {
    die ("没有选择任何数据库");
    }


    $mobile = $_POST['mobile'];
    $sql = "select id from lh_user where mobile = '$mobile' and is_bind = '1'";


    $arr = mysql_query($sql);
    $re = mysql_fetch_array($arr);


    ===============================

    $servername = "localhost:3306";
    $username = "root";
    $password = "root";
    // 创建连接
    $conn = mysql_connect($servername, $username, $password);
    // 检测连接
    if ($conn->connect_error) {
    die("连接失败: " . $conn->connect_error);
    }
    $result = mysql_select_db("weixiu", $conn);
    if (!$result) {
    die ("没有选择任何数据库");
    }

  • 相关阅读:
    强联通 HDU 1269
    zznu 1255 数字统计(数位DP, 数学方法)
    POJ Round Numbers(数位DP)
    #1033 : 交错和
    XHXJ's LIS
    吉哥系列故事——恨7不成妻
    数字0-9的数量
    Balanced Number
    BALNUM
    F(x)
  • 原文地址:https://www.cnblogs.com/vip-deng-vip/p/8556505.html
Copyright © 2011-2022 走看看