changed example

moved see also
inserted see also reference


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@79312 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Georg Richter 2002-04-21 15:23:30 +00:00
parent e551e7bc3f
commit fe74db7049

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.45 -->
<refentry id="function.mysql-fetch-assoc">
<refnamediv>
@ -41,18 +41,13 @@
<function>mysql_fetch_row</function>, while it
provides a significant added value.
</para>
<para>
For further details, see also
<function>mysql_fetch_row</function> and
<function>mysql_fetch_array</function>.
</para>
<example>
<title><function>mysql_fetch_assoc</function></title>
<programlisting role="php">
<![CDATA[
<?php
mysql_connect($host, $user, $password);
mysql_select_db($database);
mysql_connect("localhost", "mysql_user", "mysql_password");
mysql_select_db("mydb");
$query = "select * from table";
$result = mysql_query($query);
while ($row = mysql_fetch_assoc($result)) {
@ -64,6 +59,12 @@
]]>
</programlisting>
</example>
<para>
For further details, see also
<function>mysql_fetch_row</function>,
<function>mysql_fetch_array</function> and
<function>mysql_query</function>.
</para>
</refsect1>
</refentry>