wordpress/wp-content/plugins/sqlite-integration/utilities/database_maintenance.php
/**
	 * Method to return the result of SHOW COLUMNS query.
	 *
	 * It returns the result of SHOW COLUMNS query as an object if the table exists.
	 * It returns the error message if the table doesn't exist.
	 *
	 * @return string|object
	 */
Method to return the result of SHOW COLUMNS query.
It returns the result of SHOW COLUMNS query as an object if the table exists.
It returns the error message if the table doesn't exist.

@return string|object
Method to return the result of SHOW COLUMNS query . It returns the result of SHOW COLUMNS query as an object if the table exists . It returns the error message if the table doesn ' t exist . @return string|object
private function show_columns() {
		global $wpdb, $utils;
		$domain = $utils->text_domain;
		$tables = $wpdb->tables('all');
		if (!isset($_POST['table'])) {
			$message = __('Table name is not selected.', $domain);
			return $message;
		} elseif (!in_array($_POST['table'], $tables)) {
			$message = __('There\'s no such table.', $domain);
			return $message;
		}	else {
			$table_name = $_POST['table'];
			$results = $wpdb->get_results("SHOW COLUMNS FROM $table_name");
			return $results;
		}
	}
private function show_columns ( ) { global $ wpdb , $ utils ; $ domain = $ utils -> text_domain ; $ tables = $ wpdb -> tables ( 'all' ) ; if ( ! isset ( $ _POST [ 'table' ] ) ) { $ message = __ ( 'Table name is not selected.' , $ domain ) ; return $ message ; } elseif ( ! in_array ( $ _POST [ 'table' ] , $ tables ) ) { $ message = __ ( 'There\'s no such table.' , $ domain ) ; return $ message ; } else { $ table_name = $ _POST [ 'table' ] ; $ results = $ wpdb -> get_results ( " SHOW COLUMNS FROM  $ table_name " ) ; return $ results ; } }
Method to return the result of SHOW COLUMNS query.
Method to return the result of SHOW COLUMNS query .