PHP mysqli dump_debug_info() Funksie
Voorbeeld - Objekgeoriënteerde styl
Gooi ontfoutinligting in die logboek:
<?php
$mysqli = new mysqli("localhost","my_user","my_password","my_db");
$mysqli -> dump_debug_info();
?>
Kyk na voorbeeld van prosedurele styl onderaan.
Definisie en gebruik
Die dump_debug_info() / mysqli_dump_debug_info() funksie stort ontfoutingsinligting in die logboek.
Sintaksis
Objekgeoriënteerde styl:
$mysqli -> dump_debug_info()
Prosedure styl:
mysqli_dump_debug_info(link);
Parameterwaardes
Parameter | Description |
---|---|
link | Required. A link identifier returned by connect() or init() |
Tegniese besonderhede
Terugkeerwaarde: | WAAR oor sukses. ONWAAR op mislukking |
---|---|
PHP weergawe: | 5+ |
Voorbeeld - Prosedurele styl
Gooi ontfoutinligting in die logboek:
<?php
$con = mysqli_connect("localhost","my_user","my_password","my_db");
mysqli_dump_debug_info($con);
?>
❮ PHP MySQLi-verwysing