$q->start_row = 0; } if (!$q->row_count) { $q->row_count = 50; } if (!$sortorder) { $sortorder = "id"; } # $query .= " LIMIT ".$q->start_row.",".$q->row_count; // In any case we must display that form now. Note that the // "x" here and in the call to $q->where must match. // Tag everything as a CSS "query" class. if ($perm->have_perm("admin")) { if (!$db->f("total")) { printf($q->form("x", $t->map_cols, "query")); } printf("<hr>"); } // Do we have a valid query string? if ($query) { // Show that condition printf("Query Condition = %s<br>\n", $query); // Do that query $db->query("select * from postfix_virtual where " . $query); // Dump the results (tagged as CSS class default) printf("Query Results = %s<br>\n", $db->num_rows()); $t->show_result($db, "default"); } } // switch $cmd page_close();