Re: syntax help
| From: | Jacky | Date: | Thu, 14 Dec 2000 18:50:23 +0000 |
| Subject: | Re: syntax help | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30254@lists.php.net to get a copy of this message | ||
Hi dan,
the "file://" is what happen when I typed "//" as a comment and outlook
express automatically put the word "file" in front of that. By the way,
problem solved, Thanks anwyay. I synteax was wrong at the query bit, that's
why.
regards
Jack
jacky@activelifestyle.com
"Power is nothing without control
----- Original Message -----
From: Daniel Convissor <danielc@analysisandsolutions.com>
To: PHP List <php-general@lists.php.net>
Sent: Wednesday, December 13, 2000 11:38 PM
Subject: Re: [PHP] syntax help
> Jack:
>
> > "Waring: 0 (mean zero) is not Mysql result index in ..... line 141"
> > ... snip ...
> > $resultofrs = mysql_query($queryoffers);
> > $numRows = mysql_num_rows($resultofrs);
> > if (($numRows) > 0) { file://<--------------This is
line 141
> > while($row = mysql_fetch_array($resultofrs))
> > {
> > ....the html bit to display the results found.
> > }
> > } else {
> > echo " not found ";
> > }
>
> What's that "file://" doing in there? That could be tripping up the
> process. Perhaps try this untested code to solve the problem...
>
> $resultofrs = mysql_query($queryoffers);
> if ( @mysql_num_rows($resultofrs) )
> while ( $row = mysql_fetch_array($resultofrs) ) {
> ....the html bit to display the results found.
> }
> } else {
> echo " not found ";
> }
>
>
> --Dan
>
> --
> PHP scripts that make your job easier
> http://www.analysisandsolutions.com/code/
> SQL Solution | Layout Solution | Form Solution
> T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
> 4015 7 Ave, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>