Executes a SQL query and returns the value from the SQL result.
If the SQL result contains more than one column and/or more than one row, this function returns the value in the column and row specified.
If $query is null, this function returns the value in the specified column and row from the previous SQL result.
public get_var ( string | null $query = null, integer $x, integer $y ) : string | null | ||
$query | string | null | Optional. SQL query. Defaults to null, use the result from the previous query. |
$x | integer | Optional. Column of value to return. Indexed from 0. |
$y | integer | Optional. Row of value to return. Indexed from 0. |
return | string | null | Database query result (as string), or null on failure |