Welcome Guest, Not a member yet? Register   Sign In
Price database and confusing SQL query
#10

[eluser]TheFuzzy0ne[/eluser]
Code:
// Set up your query here


$subquery = $this->db->_compile_select(); // Get your query.
$this->db->_reset_select(); // Reset the class before reusing it.
The code above is untested

These are private functions, so this should work, but I would imagine there's a better way. I'm totally sure there is a much simpler way that I've overlooked, and another member is going to jump up and smack me round the head with it...

Also, it will break when CodeIgniter eventually supports only PHP version 5 and up (if this ever happens). So please, keep an eye on this post in case someone, does indeed, offer you a real solution.


Messages In This Thread
Price database and confusing SQL query - by El Forum - 02-17-2009, 05:13 AM
Price database and confusing SQL query - by El Forum - 02-17-2009, 05:55 AM
Price database and confusing SQL query - by El Forum - 02-17-2009, 06:04 AM
Price database and confusing SQL query - by El Forum - 02-17-2009, 06:43 AM
Price database and confusing SQL query - by El Forum - 02-17-2009, 07:39 AM
Price database and confusing SQL query - by El Forum - 02-17-2009, 10:00 AM
Price database and confusing SQL query - by El Forum - 02-17-2009, 01:39 PM
Price database and confusing SQL query - by El Forum - 02-17-2009, 03:06 PM
Price database and confusing SQL query - by El Forum - 02-17-2009, 03:18 PM
Price database and confusing SQL query - by El Forum - 02-17-2009, 03:40 PM
Price database and confusing SQL query - by El Forum - 02-17-2009, 11:14 PM
Price database and confusing SQL query - by El Forum - 02-18-2009, 03:10 AM
Price database and confusing SQL query - by El Forum - 02-18-2009, 06:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB