[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [linux-team] PHP



On Fri, 05 May 2000, you wrote:
> Salut,
> 
> j'utilise PHP 3.0.15, Apache 1.3.12, Postgresql 6.5.
> 
> JE fais ceci:
> 
> $i=0;
> 
> while ($arr = pg_fetch_array ($result, $i++))
>  {
>  print "on fait le $i";
>  echo "champs0=$arr[0] et champs1=$arr[1] \,n";
>  }
> 
> A chaque execution, il me donne
> 
> Warning: Unable to jump to row 33 on PostgresSQL result index 3 in
> /home/httpd/html/test.php3 on line 23
> 
> Comment eviter ce warning (pg_fetch_array retourne faux s'il n'y a plus
> rien a retourner.....)?

Pour ca, tu mets le caractere @ devant la fonction susceptible de donner un
warning......

> Autre petit probleme: tous les resultats sont imprimés sur une
> ligne... le \n n'a aucun effet....... Pourquoi?
> 
> 
> 
> 
> MErci pour vos infos.
> 
> Raph
> 
> 
> 
> 
> 
> 
> --------
> Visit the Linux Supertore Online: http://www.redcorp.com !
> If you want to be deleted from the list, send a mail to
> majordomo@rtfm.be with "unsubscribe linux-team" in the body.
> Archive of the list: http://tania.be.linux.org/
--------
Visit the Linux Supertore Online: http://www.redcorp.com !
If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.
Archive of the list: http://tania.be.linux.org/