We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
$db = \phpws2\Database::getDB(); $tbl = $db->addTable('table_name',null, false); $max_column = $tbl->getField('sort_column_name'); $db->addExpression('max(' . $max_column . ')', 'max'); $max = $db->selectColumn(); echo (int)$max;