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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:44:55+00:00 2026-05-31T03:44:55+00:00

hi i am using codeigniter , i use the insert_batch function . i have

  • 0

hi i am using codeigniter , i use the insert_batch function . i have a table structure like this

enter image description here

an i am using an array like this to insert_batch function

Array
(
    [0] => Array
        (
            [ProfileID] => 5
            [ActivityTypeID] => 4
            [ActivityTitle] => bbggg
            [ActivityLink] => http://localhost/elephanti2/home/user/action/settings/user/profilesettings
            [IsActive] => 1
            [CreatedOn] => 1331532905
            [CreatedBy] => 5
        )

    [1] => Array
        (
            [ActivityImage] => 
            [ActivityTitle] => kkkkkkkk
            [ActivityFromDate] => 1330642800
            [ActivityToDate] => 1331852400
            [ActivityDescription] => kkkkkkkkkkkkkkkk
            [ActivityLink] => 
            [CreatedOn] => 1331532905
            [CreatedBy] => 5
            [ProfileID] => 5
            [ActivityTypeID] => 1
        )

)

error is given

enter image description here

why this happens

can’t i use arrays with different keys ???????

please help………….. thanks in advance

  • 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-05-31T03:44:57+00:00Added an answer on May 31, 2026 at 3:44 am

    insert_batch translations into a SQL query that uses the VALUES form of INSERT. This requires every item being inserted to specify the same fields.

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

Sidebar

Related Questions

i am using codeigniter. i have class Orders which with some methods like start_order(),
I'm using CodeIgniter (because it's awesome) and I have something like: <?php echo anchor(/,
Using CodeIgniter's Active Record class and MySQL, I have a table of posts with
I'm using codeigniter, and I'd like to use a string such as A6664c26c66d0c39fbedb80912eed80 for
I am using CodeIgniter and in my controller I have function index($var_22) { //
hi i am using codeigniter , i use codeigniter form validation . i have
hi i am using codeigniter , in my controller constructor sometimes i use $this
I am using CodeIgniter with version 2.1.0. I want to use Hooks for login
I am using CodeIgniter and I have two different controllers - login.php and site.php
I am using Codeigniter framework and I have a form with input fields. When

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.