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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:42:48+00:00 2026-06-15T04:42:48+00:00

I am trying to take info from a MySQL 5.4 table create a entry

  • 0

I am trying to take info from a MySQL 5.4 table create a entry into another table, then delete the prior entry. I cant see what i am doing wrong.

I am running an Acer Aspire 5920,

Ubuntu 12.04,

Xampp 1.8.1,

Codeigniter 2.1.3

MySQL 5.4

this is a screenshot of the errors:

Screen shot of error messages

this is a screenshot of the original entry:

enter image description here

this is a screenshot of the created entry:

pic of created data base entry

public function add_user($key){

    $this->db->where('key', $key);

    $temp_user = $this->db->get('temp_users');

    if($temp_user){

        $row = $temp_user->row();

        $data = array(
                'email' => $row-email,
                'password' => $row->password
            );

        $did_add = $this->db->insert('users', $data);

    }

    if($did_add){

        $this->db->where('key', $key);
        $this->db->delete('temp_users', $key);



    }else{
        return false;
    }

}
  • 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-15T04:42:49+00:00Added an answer on June 15, 2026 at 4:42 am
     $data = array(
                    'email' => $row-email,
                    'password' => $row->password
                );
    

    Should be

     $data = array(
                    'email' => $row->email,
                    'password' => $row->password
                );
    

    Missing “>” in “$ row-email”

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

Sidebar

Related Questions

I'm trying to create function using phpmyadmin/mysql console. Without any luck. I'm getting info
I'm trying to run mysql queries from a remote server (server B) and then
I'm trying to connect to a mysql db, but from another server and process
I've such a problem , first take a look at mysql table => CREATE
I am trying to create an app, which can take photos from camera and
net I am trying to take a value from a previous form typically in
Im trying to create a board game generator in ruby which takes images from
I'm trying to use urlretrieve to download files from urls that take the form:
I'm trying to print a query result to file from MySQL ( SELECT blah
I am trying to create a TCP connection from an embedded controller to a

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.