-
Looking at the source code, I can only see that I can ORDER BY column. It would be nice if this can be extended to COUNT and maybe more functions in the future.
But for now I can do a custom query.
-
`$database->select($tablename, ["*",],
["And"=>[ "isok"=>0,"aid&2"=>1]]);`
like this is not support?
-
Find string Number 508 and after add code
else if($ORDER == 'RAND()' || $ORDER == 'rand()'){
$where_clause .= ' ORDER BY RAND()';
}
-
why can't i do a simple WHERE
"expiry[
-
in version 1.1.2
1) ORDER BY RAND() - does not work
2) Function [SELECT] does not return array value, because i check my query, and [SELECT] must return three value, but he dont return never and PH…
-
```
protected function fn_quote($column, $string)
{
return (strpos($column, '#') === 0 && preg_match('/^[A-Z0-9\_]*\([^)]*\)$/', $string)) ?
$string :
$this->quote(…
-
How can I use like this:
``` sql
select * from tmp where MOD(tmp.id, 10) = 2
```
only use query?
-
I'm not sure why stick to quoting value even if # if prefixed. Sometime we just need to use a raw expression, for example, 32bit php don't support 64bit integer values, but mysql supports bigint. Usin…
-
I want to use:ORDER BY rand();
so I edit:
if (isset($where['ORDER']))
{
$rsort = '/(^[a-zA-Z0-9_-.]_)(\s_(DESC|ASC))?/';
$ORDER = $where['ORDER'];
```
if (is_array($ORDER))
{
//code....
…
-
Is there any way to support a query like this:
SELECT *, (base + VA) AS TotalPrice FROM products