Welcome Guest, Not a member yet? Register   Sign In
Using MySQL "IN" in a CI query
#1

[eluser]timpiele[/eluser]
How do I do this:

Code:
$sql = "SELECT * FROM engines WHERE id IN ($ids)";

inside of a CI where()?

Code:
$this->db->where('id', $ids);

#2

[eluser]jmadsen[/eluser]
here's a good read:

http://ellislab.com/codeigniter/user-gui...ecord.html

(yes, for basic level questions - RTFM)




Theme © iAndrew 2016 - Forum software by © MyBB