update descartes
This commit is contained in:
parent
5b942a191d
commit
adb739775f
|
@ -248,7 +248,7 @@
|
|||
$params = array_merge($params, $condition['PARAM']);
|
||||
}
|
||||
|
||||
$query = "SELECT * FROM " . $table . " WHERE 1 " . (count($wheres) ? 'AND ' : '') . implode(' AND ', $wheres);
|
||||
$query = "SELECT * FROM `" . $table . "` WHERE 1 " . (count($wheres) ? 'AND ' : '') . implode(' AND ', $wheres);
|
||||
|
||||
if ($order_by !== null)
|
||||
{
|
||||
|
@ -348,7 +348,7 @@
|
|||
$params = array_merge($params, $condition['PARAM']);
|
||||
}
|
||||
|
||||
$query = "SELECT COUNT(*) as `count` FROM " . $table . " WHERE 1 " . (count($wheres) ? 'AND ' : '') . implode(' AND ', $wheres);
|
||||
$query = "SELECT COUNT(*) as `count` FROM `" . $table . "` WHERE 1 " . (count($wheres) ? 'AND ' : '') . implode(' AND ', $wheres);
|
||||
|
||||
$query = $this->pdo->prepare($query);
|
||||
|
||||
|
|
Loading…
Reference in New Issue