Documentation

The codex has been updated for Sports Bench 2.0 which is slated for an early September release. This is to help those who have made their own customizations get ready for the 2.0 release which will be radically different from a code perspective. Learn more about the changes you can expect with the code in Sports Bench 2.0.

Database::get_results( $sql )

Gets the results for a specified SQL query.

Parameters

  • string $sql — The SQL query to get the data.

Returns

  • array|object|null — Returns an array or object based on the results given or null if no rows are found.

Since: 2.0

Source

  • /includes/classes/base/class-database.php — 83