Welcome Guest, Not a member yet? Register   Sign In
Can I return lots of results from one model function?
#11

[eluser]Assim[/eluser]
Thanks, but I wanted a way to do this using the Active Record method rather than the normal sql method.
#12

[eluser]überfuzz[/eluser]
[quote author="Assim" date="1257957905"]...
I know everything that is needed to be known about the models, ...[/quote]

Holy clap, we should be asking you stuff! :-)
#13

[eluser]Assim[/eluser]
[quote author="überfuzz" date="1257961129"][quote author="Assim" date="1257957905"]...
I know everything that is needed to be known about the models, ...[/quote]

Holy clap, we should be asking you stuff! :-)[/quote]
ehehe. Smile

Umm, well, then I know all about models from what is written in the user guide. Tongue
#14

[eluser]überfuzz[/eluser]
[quote author="Assim" date="1257961873"][quote author="überfuzz" date="1257961129"][quote author="Assim" date="1257957905"]...
I know everything that is needed to be known about the models, ...[/quote]

Holy clap, we should be asking you stuff! :-)[/quote]
ehehe. Smile

Umm, well, then I know all about models from what is written in the user guide. Tongue[/quote]
Go on and read about db then, I seem to remember adding a link somewhere in this thread.
#15

[eluser]mattpointblank[/eluser]
Code:
$this->db->select('name, password, email');
return $this->db->get_where('users', array('id' => 1))->row_array()

All of this stuff is in the userguide.
#16

[eluser]Assim[/eluser]
[quote author="überfuzz" date="1257963222"][quote author="Assim" date="1257961873"][quote author="überfuzz" date="1257961129"][quote author="Assim" date="1257957905"]...
I know everything that is needed to be known about the models, ...[/quote]

Holy clap, we should be asking you stuff! :-)[/quote]
ehehe. Smile

Umm, well, then I know all about models from what is written in the user guide. Tongue[/quote]
Go on and read about db then, I seem to remember adding a link somewhere in this thread.[/quote]
It's quite confusing because there's no example showing how to use all those db functions together. Do I also have to put every db function in a variable?
#17

[eluser]Assim[/eluser]
[quote author="mattpointblank" date="1257963763"]
Code:
$this->db->select('name, password, email');
return $this->db->get_where('users', array('id' => 1))->row_array()

All of this stuff is in the userguide.[/quote]
Thanks. I know they are in the user guide, but as I said, I don't know how to put them together. Thanks for the demonstration. Smile




Theme © iAndrew 2016 - Forum software by © MyBB