Welcome Guest, Not a member yet? Register   Sign In
ASK: how to get table name of the current query
#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..


Messages In This Thread
ASK: how to get table name of the current query - by El Forum - 06-02-2008, 04:45 AM
ASK: how to get table name of the current query - by El Forum - 06-02-2008, 04:59 AM
ASK: how to get table name of the current query - by El Forum - 06-02-2008, 05:34 AM
ASK: how to get table name of the current query - by El Forum - 06-02-2008, 05:44 AM
ASK: how to get table name of the current query - by El Forum - 06-02-2008, 06:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB