Welcome Guest, Not a member yet? Register   Sign In
Is it possible with Active Record?
#1
Question 

Hello!

I have this embedded db query, and I want to rewrite it in Active Record-style:

PHP Code:
 $sql "SELECT id, fullname, phone FROM users WHERE country=(SELECT country_id FROM country WHERE name=?) AND  type=?"
Is it possible? If so, can you please tell me how can I start with it? Smile

Thank you!
Reply


Messages In This Thread
Is it possible with Active Record? - by fulopm - 03-19-2016, 11:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB