CodeIgniter Forums

Full Version: Inserting multiple db rows?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
Hi All,
Hopefully this is an easy question.
I'm new to ci and I want to insert multiple rows into my db, I've searched the forums and been unable to find anything. Any help would be great.


Thanks,
dizzynutter

El Forum

[eluser]marcoss[/eluser]
And what would be the problem? Tongue

El Forum

[eluser]Unknown[/eluser]
I think dizzynutter was talking about multiple-row insert, to insert more than one row with only one query to improve performance.
This is what i want to do, i know that you can do this in a "sql way" with multiple values in the insert query, but is there an active record way to do this?

Thanks,
Martino

El Forum

[eluser]chamil sanjeewa[/eluser]
I think this link may help you
http://codefury.net/2009/12/insert-multi...deigniter/