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 8109239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:21:24+00:00 2026-06-06T01:21:24+00:00

I have a function of activation code function active($activationcode) { $sql = SELECT *

  • 0

I have a function of activation code

function active($activationcode)
{
    $sql = "SELECT * FROM users WHERE activationcode = '$activationcode';";
    $obj_db = new DB();
    $obj_db->query($sql);
    $row = $obj_db->rsset();
    $id = $row[id];
    $obj_db->db_close();
    return $id; 
}

now i am calling itin another page…all i want to do is to generate random number and send the link to the user via e mail.
my function is correct . now i want this code to work . plz help me

if(isset($_GET['action']) == "Update")
{
    $userActive = $Users->active($Users->_activationcode());
    $Users->active($_GET['id']);
    $_POST['activationcode'];
}
  • 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-06T01:21:25+00:00Added an answer on June 6, 2026 at 1:21 am

    Change:

    if(isset($_GET['action']) == "Update")
    

    To:

    if($_GET['action'] == "Update")
    

    Or better:

    if(isset($_GET['action']) && $_GET['action'] == "Update")
    

    You were comparing the result of isset() (boolean) with string update which would never become true.

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

Sidebar

Related Questions

I have this method: public function activation_code() { //activation code sent into db $activation_code
Which Activator.CreateInstance overload function to call? I have a type returned from Type proxyType
haii i have this code in UISWitchControl for activating the autoscroll function -(IBAction)_clickautoscroll:(id)sender {
I have the following code that confirms a activation with the database. What I
I've written PL/SQL code to denormalize a table into a much-easer-to-query form. The code
I have the following code: Dim compiler As ICodeCompiler = New Microsoft.JScript.JScriptCodeProvider().CreateCompiler Dim params
I have function like this typedef vector<vector<string> > vecArray; vecArray dul(); vecArray dul() {
I have function getMemory() which returns VARIANT (mfc). It is said that in ulVal
I have function in a module in the lib dir of my Sinatra app,
I have function that has : ob_start(); //Include of some files $content = ob_get_contents();

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.