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