php3-list | 199908
Date: 08/13/99
- Next message: Rasmus Lerdorf: "Re: [PHP3] 0 is not a result"
- Previous message: Jeff Schwartz: "[PHP3] Reading PHP digest with Outlook (slightly OT)"
- In reply to: Derek Bruce: "Re: [PHP3] 0 is not a result"
- Next in thread: Rasmus Lerdorf: "Re: [PHP3] 0 is not a result"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
try putting a $ in front of that.
@$link=msql_connect();
or even
$link = <email protected>();
You dont see the error the original generates because you supressed it!
Sander
> -----Original Message-----
> From: Derek Bruce [mailto:dbruce <email protected>]
> Sent: Friday, August 13, 1999 15:16
> To: Andrew M McDermott
> Cc: PHP List
> Subject: Re: [PHP3] 0 is not a result
>
>
> I don't know if this ever made it to the list:
>
> Using
> $link=0;
> while ($link==0){
> <email protected>=msql_connect();
> {
> causes an error on the @ line.
>
> Derek
> dbruce <email protected>
>
>
> > At 09:36 AM 8/12/99 -0400, you wrote:
> > >Hello,
> > >
> > >I am getting an error message once in a while:
> > >
> > >Warning: 0 is not a mSQL link index in
> > >/usr/local/etc/httpd/htdocs/search/do_query.htm on line 94
> > >
> > >Here is line 94:
> > >
> > >93 $link = msql_connect () ;
> > >94 $res = msql ( "sdb", "select ".$qstring, $link ) ;
> > >95 if (($res)>=(1)) {
> > >
> > > $nrows = msql_num_rows ($res ) ;
> > > $nfields = msql_num_fields ($res ) ;
> > > printf ( " and it found: <B>%d
> > >matches</B>\n",$nrows ) ;
> > > } else
> > >
> > > echo ( "<BR>Your query did not find any matches. Try again.
> > ><BR>\n" ) ;
> > > }
> > >
> > >How can I prevent this message from happening?
> > try a control loop, e.g.
> >
> > $link=0;
> > while ($link==0){
> > <email protected>=mysql_connect();
> > {
> >
> > which will loop until the connection is successful (timing
> problems on the
> > network, etc) and suppress error messages when the connect doesn't work.
> >
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
> To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Rasmus Lerdorf: "Re: [PHP3] 0 is not a result"
- Previous message: Jeff Schwartz: "[PHP3] Reading PHP digest with Outlook (slightly OT)"
- In reply to: Derek Bruce: "Re: [PHP3] 0 is not a result"
- Next in thread: Rasmus Lerdorf: "Re: [PHP3] 0 is not a result"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

