Welcome Guest, Not a member yet? Register   Sign In
ASK: how to get table name of the current query
#1

[eluser]Unknown[/eluser]
i'm new bie here... please some body help me to fix this problem..
i'd like to retrieve table name of the current query..
i used to use mysql_field_table().. but i'don't know how to do that in CI..
please somebody help me.
#2

[eluser]xwero[/eluser]
Custom Function Calls
#3

[eluser]Unknown[/eluser]
thanks for the solution..
i've try use the custom function call..
there are some error reports says:
"An Error Was Encountered This feature is not available for the database you are using"
do i write the wrong code or something?
here are my codes:

<?
$query= $this->db->query('select * from sub where id=2');
$row = $query->row();
echo $this->db->call_function('mysql_field_table','$query','$row->id');
?>

thanks..
#4

[eluser]xwero[/eluser]
you have to remove the mysql_ part that is added by the method
#5

[eluser]Seppo[/eluser]
And probably the single quotes around $query and $row->id




Theme © iAndrew 2016 - Forum software by © MyBB