mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
5a32b77fb5
commit
cfb5f2fda2
1 changed files with 2 additions and 2 deletions
|
@ -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">
|
||||
<?php
|
||||
mysql_connect ($host, $user, $password);
|
||||
|
|
Loading…
Reference in a new issue