php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #41111 parse error in example code (translation: ru)
Submitted: 2007-04-17 03:40 UTC Modified: 2007-04-17 05:17 UTC
From: theshut at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Linux Gentoo
Private report: No CVE-ID: None
 [2007-04-17 03:40 UTC] theshut at gmail dot com
Description:
------------
http://www.php.net/manual/ru/function.mysql-result.php
Parse error in example.
Must be a:
<?php
    $link = mysql_connect("localhost", "mysql_user", "mysql_password")
            or die("Could not connect: " . mysql_error());
 
    $result = mysql_query("SELECT name FROM work.employee")
            or die("Could not query: " . mysql_error());
           
    echo mysql_result($result,2); // outputs third employee's name
   
    mysql_close($link);
?> 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-17 05:17 UTC] philip@php.net
This has been fixed in CVS and will show up after the next RU build, thank you for helping make the PHP Manual better :)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 05 17:01:34 2025 UTC