Welcome Guest, Not a member yet? Register   Sign In
Using constants within db requests
#1

[eluser]newtonianb[/eluser]
I've defined a bunch of constants for each of my tables to keep things organised, now how can I use them in my requests?

If I try something like below
$this->db->from(DBTABLE_MYTABLEB . ' m');

I get error as it tries to use DBTABLE_MYTABLES as the actual value. I remember reading in the docs you could specify a third argument to prevent data from being escape but how can I make that happen for from and db related functions that are not 'set'


Messages In This Thread
Using constants within db requests - by El Forum - 05-29-2010, 08:51 PM
Using constants within db requests - by El Forum - 05-29-2010, 10:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB