09-24-2008, 03:05 AM
[eluser]meigwilym[/eluser]
I've got a table with columns for each language (en and cy).
I get the data like this
but then I'm stuck as I either need to call $row->text_cy or $row->text-en.
Thanks,
Mei
I've got a table with columns for each language (en and cy).
I get the data like this
Code:
function getdata($lang){
$sql = "SELECT title_".$lang.", text_".$lang." FROM table ; ";
$query = $this->db->query($sql);
foreach ($query->result() as $row){
# etc etc
but then I'm stuck as I either need to call $row->text_cy or $row->text-en.
Thanks,
Mei