For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > August 2007 > #42458 [Opn]: mistake in PHP example: en/reference/msql/reference.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #42458 [Opn]: mistake in PHP example: en/reference/msql/reference.xml
glowacki at europa dot pl

2007-08-30, 7:32 pm

ID: 42458
User updated by: glowacki at europa dot pl
Reported By: glowacki at europa dot pl
Status: Open
Bug Type: Documentation problem
Operating System: any
PHP Version: Irrelevant
New Comment:

Expected result:
----------------
/* Connecting, selecting database */
$link = msql_connect('localhost')
or die('Could not connect : ' . msql_error());


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

[2007-08-28 11:10:32] glowacki at europa dot pl

Description:
------------
file: en/reference/msql/reference.xml
....
/* Connecting, selecting database */
$link = msql_connect('localhost', 'username', 'password')
or die('Could not connect : ' . msql_error($link));

// function 'msql_connect' require only one parameter:
hostname|hostaddress

Expected result:
----------------
/* Connecting, selecting database */
$link = msql_connect('localhost')
or die('Could not connect : ' . msql_error($link));



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


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







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com