From 7ee01a578ee3639e65b998ad97a1d0422ff6f2bd Mon Sep 17 00:00:00 2001 From: Justin Martin Date: Sun, 3 Jul 2011 19:14:33 +0000 Subject: [PATCH] Made OOP-style example consistent, changing procedural calls to OOP. Fixes bug #55119. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312861 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mysqli/mysqli/query.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/mysqli/mysqli/query.xml b/reference/mysqli/mysqli/query.xml index eb526dd4fe..49e7cf9449 100644 --- a/reference/mysqli/mysqli/query.xml +++ b/reference/mysqli/mysqli/query.xml @@ -152,8 +152,8 @@ $mysqli = new mysqli("localhost", "my_user", "my_password", "world"); /* check connection */ -if (mysqli_connect_errno()) { - printf("Connect failed: %s\n", mysqli_connect_error()); +if ($mysqli->connect_errno()) { + printf("Connect failed: %s\n", $mysqli->connect_error()); exit(); }