Welcome Guest, Not a member yet? Register   Sign In
[SORTED] DB results with unknown field names
#2

[eluser]GSV Sleeper Service[/eluser]
you may be able to use something like this.
Code:
foreach($query->result_array() as $row){
    echo $row[0]; //title_xx
    echo $row[1]; //text_xx
}
I've not tested this though...

[edit] xwero's alias idea is a much neater solution.


Messages In This Thread
[SORTED] DB results with unknown field names - by El Forum - 09-24-2008, 03:05 AM
[SORTED] DB results with unknown field names - by El Forum - 09-24-2008, 03:14 AM
[SORTED] DB results with unknown field names - by El Forum - 09-24-2008, 03:16 AM
[SORTED] DB results with unknown field names - by El Forum - 09-24-2008, 05:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB