/Helpers.php

Description

Global helper functions for the weatherstation app

Functions
check_mysql_error (line 61)

die with the error message if the given result handle or mysqli object has an error

void check_mysql_error (MySQLi_Result $result, MySQLi $mysqli)
  • MySQLi_Result $result
  • MySQLi $mysqli
get_var (line 18)

search global request variables $_POST and $_GET in that order and return the first defined value for the given key

  • return: the value of the variable name (if any) or null.
mixed get_var (string $name)
  • string $name
prettyprint (line 47)

wrap html pre tags around the given string, with class="prettyprint"

void prettyprint (string $string)
  • string $string
site_url (line 36)

return the full URL for the base page of the site.

string site_url ()

Documentation generated on Mon, 12 Mar 2012 11:59:41 -0700 by phpDocumentor 1.4.4