Deprecated
This function is deprecated, and we recommend using the DB API: PrepareSQL function to prepare complex queries.
Returns the table name. TableName() is used for complex queries with calculated fields or joined tables.
Syntax
TableName()
Arguments
No arguments.
Return value
Returns the table name.
Example
Using a complex query:
global $dal;
$tblProducts = $dal->Table("Products");
$sql = "select sum(UnitsInStock) as total, concat(Category,' ',
ProductName) as FullProductName from ";
$sql .= $tblProducts->TableName() . " group by country";
See also: