|
|
@@ -132,56 +125,61 @@ if(isset($inputs) && ($inputs[0] != __('pma_null') || $inputs[1] != __('pma_null
-
+ |
+
+
- |
-
-
-
-
+ else{ ?>
+
+ | |
+
+
+
+
+
@@ -211,31 +209,31 @@ else {
// Unlike tbl_search page this part builds two queries, Query1 for the search criteria on 1st column and Query2 for the other column. This has to be done because user can select two same columns having different criteria.
- for($i = 0 ;$i<2;$i++){
+ for($i = 0 ; $i < 2 ; $i++){
- $sql_query = 'SELECT ';
+ $sql_query = 'SELECT ';
- // Add the colums to be selected
+ // Add the colums to be selected
- $sql_query .= PMA_backquote($inputs[$i]);
+ $sql_query .= PMA_backquote($inputs[$i]);
- //Add the table
+ //Add the table
- $sql_query .= ' FROM ' . PMA_backquote($table);
+ $sql_query .= ' FROM ' . PMA_backquote($table);
- // The where clause
- $charsets = array();
- $cnt_func = count($zoomFunc[$i]);
- reset($zoomFunc[$i]);
- $func_type = $zoomFunc[$i];
- list($charsets[$i]) = explode('_', $collations[$i]);
- $unaryFlag = (isset($GLOBALS['cfg']['UnaryOperators'][$func_type]) && $GLOBALS['cfg']['UnaryOperators'][$func_type] == 1) ? true : false;
- $w = PMA_tbl_search_getWhereClause($fields[$i],$inputs[$i], $types[$i], $collations[$i], $func_type, $unaryFlag);
- if ($w != '') {
- $sql_query .= ' WHERE ' . $w;
- }
- print $sql_query."