This method must be called after all the queries in a script, preferably before !
You should ALWAYS have this method called at the end of your scripts and control whether the debugging console
will show or not with the {@link debug} property.
public show_debug_console ( boolean $return = false ) : void | ||
$return | boolean | (Optional) If set to TRUE, the output will be returned instead of being printed to the screen. Default is FALSE. @return void |
return | void |
Name FROM city WHERE CountryCode = ? ORDER BY Name ', array($country_code)); // get all the languages spoken for the country code $db->query(' SELECT Language, IsOfficial, Percentage FROM countrylanguage WHERE CountryCode = ? ORDER BY Percentage DESC ', array($country_code)); // show debug console. // THIS SHOULD ALWAYS BE PRESENT AT THE END OF YOUR SCRIPTS! // debugging should be controlled by setting the "debug" property to TRUE/FALSE $db->show_debug_console(); ?> </body> </html>