Hi Mehdi,

On Sun, 2003-10-19 at 22:53, Mehdi Achour wrote:
> Hi Ali,
> 
>  From the documentation :
> 
>    object mysql_fetch_field ( resource result [, int field_offset])
> 
> The example was good, it also may have be :
> 
>    $meta = mysql_fetch_field($result, $i);
> 
> But in no way
> 
>    $meta = mysql_fetch_field($i);
> 
> I'm reverting and marking #25910 as bogus. Please pay more attention 
> next time, bugs can also be bogus ;)

sure. I was not reading the docs, but changing them. Next time i'll have
a look ;)

-ali

> 
> didou
> 
> 
> 
> > ali         Sun Oct 19 11:49:30 2003 EDT
> > 
> >   Modified files:              
> >     /phpdoc/en/reference/mysql/functions    mysql-fetch-field.xml 
> >   Log:
> >   fixes #25910
> >   
> >   
> > Index: phpdoc/en/reference/mysql/functions/mysql-fetch-field.xml
> > diff -u phpdoc/en/reference/mysql/functions/mysql-fetch-field.xml:1.7 
> > phpdoc/en/reference/mysql/functions/mysql-fetch-field.xml:1.8
> > --- phpdoc/en/reference/mysql/functions/mysql-fetch-field.xml:1.7   Wed Jul  9 
> > 11:07:29 2003
> > +++ phpdoc/en/reference/mysql/functions/mysql-fetch-field.xml       Sun Oct 19 
> > 11:49:30 2003
> > @@ -1,5 +1,5 @@
> >  <?xml version="1.0" encoding="iso-8859-1"?>
> > -<!-- $Revision: 1.7 $ -->
> > +<!-- $Revision: 1.8 $ -->
> >  <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
> >    <refentry id="function.mysql-fetch-field">
> >     <refnamediv>
> > @@ -107,7 +107,7 @@
> >  $i = 0;
> >  while ($i < mysql_num_fields($result)) {
> >      echo "Information for column $i:<br />\n";
> > -    $meta = mysql_fetch_field($result);
> > +    $meta = mysql_fetch_field($i);
> >      if (!$meta) {
> >          echo "No information available<br />\n";
> >      }
> 

Reply via email to