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

转载于:https://www.cnblogs.com/vip-deng-vip/p/8556505.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值