ID:               34352
 User updated by:  sr at brightlight dot ch
 Reported By:      sr at brightlight dot ch
 Status:           Open
 Bug Type:         Documentation problem
 Operating System: *
 PHP Version:      Irrelevant
 New Comment:

I'd also like to point out that in the mysqli documentation 
there is a lot of talk about using procedural style with a 
link-resource. There is no way to actually retrieve the link-
resource. At least none is given in the manual. There is no 
property, mysqli_connect doesnt return one and there is no 
documented method for it.


Previous Comments:
------------------------------------------------------------------------

[2005-09-02 21:32:38] sr at brightlight dot ch

Description:
------------
Quote from http://php.benscom.com/manual/en/function.mysqli-
connect.php:

Example 2. Procedural style

<?php
$link = mysqli_connect("localhost", "my_user", 
"my_password", "world");

/* check connection */ 
if (!$link) {
   printf("Connect failed: %s\n", mysqli_connect_error());
   exit();
}
...
?>
This leads to the wrong assumption mysqli_connect would 
return a link resource which it doesnt.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=34352&edit=1

Reply via email to