svn: /phpdoc/en/trunk/reference/mysqli/mysqli_result/ fetch-assoc.xml

From: Date: Fri, 13 Jun 2014 08:12:00 +0000
Subject: svn: /phpdoc/en/trunk/reference/mysqli/mysqli_result/ fetch-assoc.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-12529@lists.php.net to get a copy of this message
salathe Fri, 13 Jun 2014 08:12:00 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=333769 Log: Use object in OO example -- Patch by anonymous #45313 Bug: https://bugs.php.net/45313 (No Feedback) imap_header() is crashing with Segmentation fault Changed paths: U phpdoc/en/trunk/reference/mysqli/mysqli_result/fetch-assoc.xml Modified: phpdoc/en/trunk/reference/mysqli/mysqli_result/fetch-assoc.xml =================================================================== --- phpdoc/en/trunk/reference/mysqli/mysqli_result/fetch-assoc.xml 2014-06-13 08:11:14 UTC (rev 333768) +++ phpdoc/en/trunk/reference/mysqli/mysqli_result/fetch-assoc.xml 2014-06-13 08:12:00 UTC (rev 333769) @@ -61,8 +61,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 (#12529) next »