Correcting mysql introductory example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@49955 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Damien Seguy 2001-06-21 16:03:56 +00:00
parent 5a32b77fb5
commit cfb5f2fda2

View file

@ -44,7 +44,7 @@
// printing HTML result
print "<table>\n";
while($line = mysql_fetch_array($result, MYSQL_){
while($line = mysql_fetch_array($result)){
print "\t<tr>\n";
while(list($col_name, $col_value) = each($line)){
print "\t\t<td>$col_value</td>\n";
@ -739,7 +739,7 @@ select t1.f1 as foo t2.f1 as bar from t1, t2
<function>mysql_fetch_row</function> and <function>mysql_fetch_assoc</function>.
</para>
<example>
<title><function>Mysql_fetch_array</function></title>
<title><function>Mysql_fetch_array</function> example</title>
<programlisting role="php">
&lt;?php
mysql_connect ($host, $user, $password);