svn: /phpdoc/en/trunk/reference/mysqli/mysqli/ query.xml

From: Date: Sun, 03 Jul 2011 19:14:33 +0000
Subject: svn: /phpdoc/en/trunk/reference/mysqli/mysqli/ query.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-8409@lists.php.net to get a copy of this message
frozenfire Sun, 03 Jul 2011 19:14:33 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=312861 Log: Made OOP-style example consistent, changing procedural calls to OOP. Fixes bug #55119. Bug: https://bugs.php.net/55119 (Open) Procedural mixed with OOP Changed paths: U phpdoc/en/trunk/reference/mysqli/mysqli/query.xml Modified: phpdoc/en/trunk/reference/mysqli/mysqli/query.xml =================================================================== --- phpdoc/en/trunk/reference/mysqli/mysqli/query.xml 2011-07-03 19:01:42 UTC (rev 312860) +++ phpdoc/en/trunk/reference/mysqli/mysqli/query.xml 2011-07-03 19:14:33 UTC (rev 312861) @@ -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(); }

« previous php.doc.cvs (#8409) next »