• 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 ("没有选择任何数据库");
    }

  • 相关阅读:
    Animation Curve运动曲线
    Unity3D Collider类的信息传输Ontrigger*与OnCollision*
    springmvc拦截器的简单了解
    JDK中的注解简单了解
    面试加分项---HashMap底层实现原理
    springmvc参数绑定
    springmvc和struts2的区别
    修改tomcat的编码方式,可以解决某些get请求乱码问题
    springmvc 怎么响应json数据
    权限控制框架---shiro入门
  • 原文地址:https://www.cnblogs.com/vip-deng-vip/p/8556505.html
Copyright © 2020-2023  润新知