Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8099383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:23:44+00:00 2026-06-05T22:23:44+00:00

<?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());

  • 0
<?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);

my this line of code generate an API KEY and saves it in my database. my table name is USERS.. but the api key that this line of code generates is same for the all users…
i want the unique API key for all the users… can u please help?

$Users->_apikey(md5("ONE@:".$_POST[uname].":@STEP"));
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:23:46+00:00Added an answer on June 5, 2026 at 10:23 pm

    You are creating the md5 of a string and the only reason its the same for all users is because the string is same for everyone.

    check the content of $_POST['uname']

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<?php if (isset($_GET['action']) && (!$_GET['action'] == 'reply')) { ?> <div class=actions> <input type=button onclick=javascript:
<body> <?php if(isset($_POST['vendor_add_submit'])){ //INSERT INTO DB unset( $_POST['vendor_add_submit'] ); } ?> <form method=post action=<?php
Take this code: <?php if (isset($_POST['action']) && !empty($_POST['action'])) { $action = $_POST['action']; } if
<?php session_start(); if(isset($_POST['sessionNum'])){ //Declare my counter for the first time $_SESSION['initial_count'] = $_POST['sessionNum']; $_SESSION['sessionNum']
I have the following PHP code: <?php if(isset($_GET['article'])) { echo <b>success</b>; } ?> And
I have the following pages: page1.php <?php if (isset($_GET['link'])) { session_start(); $_session['myvariable'] = 'Hello
HTML : <a href=/profile.php?user={$username}&action_request=friend_request> Friend request </a> PHP : if(isset($_GET['user']) && isset($_GET['action_request'])) { if(strcmp($_GET['action_request'],friend_request)
topic.php $id = isset($_GET['id']) ? intval($_GET['id']) : 0; $query = mysql_query(SELECT * FROM topics
I am using this PHP code: if (isset($_GET['c'])) { $pages = array(home, upload, signup);
My email code isn't working. <?php if(isset($_POST['send'])){ $to = info@erbimages.com ; // change all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.