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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:40:05+00:00 2026-06-11T12:40:05+00:00

My apologies for being a slightly broader question then most like but i can’t

  • 0

My apologies for being a slightly broader question then most like but i can’t find any help throughout the internet for this. I’m working on a site where i am not in charge of the database (yes its very problematic) and i was told to use a stored procedure to insert data into a table.

The query is being run. It inserts the data into the table but something else is triggering the error.

My question is: Is there anything in this code that would trigger that error or is it something in the stored procedure? What can i do to test for it? Any suggestions at all? I can’t figure out what the error number : 0 actually is.

I’m using codeigniter framework. Here’s the code:

 public function addScopeContent () {
    $cn = '%';
    $gp = $this->input->post('group');
    $co = $this->input->post('company');
    $ci = $this->input->post('city');
    $dp = '%';

    if ($gp == 'BU000') {
        $gp = '%';
    }
    if ($co == 'CO000') {
        $co = '%';
    }
    if ($ci == 'CI000') {
        $ci = '%';
    }

    $location = $cn .'-'. $gp .'-'. $co .'-'. $ci .'-'. $dp;

    $query = $this->db->query('call rollout_systems_multiimport('. $this->session->userdata('scopeId') .', "'. $location .'")');
    if ($query) {
        redirect('discovery/addContent');
    }
}

This is the stored procedure:

  CREATE DEFINER=`root`@`localhost` PROCEDURE `rollout_systems_multiimport`(
  var_scope_id varchar(250),
  var_searchString varchar(250))
  BEGIN

  Insert into rollout_systems
  (`sys_name`, `sys_serial`, `eam_model`, `EOL_date`, `eam_user`, `scope_id`)
  select `ad_name`,`eam_Serial_Number`,`eam_Model`,`Model_EOL`,`ad_account`,var_scope_id
  from `disc_userpool` inner join `disc_systempool`
  on `ad_account` = `user_aurora_id`
  Where `disc_userpool`.`location_code` like var_searchString;

NOTE: I just tried changing the dbdriver in the database.php page from mysqli to mysql. It doesnt give an error anymore.

  • 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-11T12:40:07+00:00Added an answer on June 11, 2026 at 12:40 pm

    It seems to be a codeigniter mysql driver bug, try using the simple_query method.

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

Sidebar

Related Questions

Apologies if this has been posted elsewhere but I can't seem to find any
Apologies if this is a duplicate, but I've not managed to find this question
I apologies for this being a very simple question but as a first time
Hope someone can help. Apologies for not being well informed on htaccess. I have
Apologies if this question has been asked. I couldn't find it, but if it
Apologies if this ends up being a stupid question, but I was just wondering
Apologies, It looks like my original question was not able to correctly explain what
Being new to RoR, apologies for my vague phrasing of the question. So I'm
My apologies if this was answered in another question, I could not find an
Apologies for question title, if anyone can explain it better please do edit. I

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.