<?php
if(isset($_POST['btnSubmit']) and $_GET['action'] == "Add")
{
$Users->copyPostData();
$Users->_password(md5($_POST[password]));
$Users->_status(0);
$Users->_apikey(md5("ONE@:".$_POST[uname].":@STEP"));
$userNum = $Users->checkUserExist($Users->_username());
$userEmail = $Users->checkEmailExist($Users->_email());
if(($userNum == '0' || $userNum == '') && ($userEmail == '0' || $userEmail == '')) {
$randomVar = generateRandomNo(8);
$Users->_activationcode($randomVar);
我这行代码生成一个 API KEY 并将其保存在我的数据库中。我的表名是 USERS .. 但是这行代码生成的 api 密钥对所有用户都是相同的......我想要所有用户的唯一 API 密钥......你能帮忙吗?
$Users->_apikey(md5("ONE@:".$_POST[uname].":@STEP"));