Re: Error in tutorial example
| From: | Patrick Meisel | Date: | Mon, 05 Jun 2000 11:24:56 +0000 |
| Subject: | Re: Error in tutorial example | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-1032@lists.php.net to get a copy of this message | ||
You are right, and it looks like there was more than one error in this.
From this small piece of code it is hard to judge, what it is supposed
to do.
But in general the loop-opener should look like this:
for($i=0;$i<some_value;$i++){
The next line doesn´t make sense either. Must be some lines missing.
Maybe he meant this:
echo "Error: ".mysql_error();
Try mailing the author.
Patrick Meisel
> Dear php Programmers,
>
> I'm using the textbook from Jörg Krause
> "PHP Grundlagen und Lösungen,
> Webserverprogrammierung unter Windows und Linux",
>
> I got this error message,
>
> Parse error: parse error, expecting
','' or
> ';'' in
> /wwwroot/morten/test/cdrom_Krause/06_001.html on line 53
>
> when I run example 06_001.php3/06_001.html from the cd-rom
> or from the internetsite .
>
> http://www.php.comzept.de
>
> Something must be wrong with this coding.
>
> for($i=0;$i
> ".mysql_error());
> if(!$result) {
> exit;
> }
>
> Could please an experienced Programmer take a look at this code ?
> I think the for statement ist erroneous.
>
> Yours Sincerely
>
> Morten Gulbrandsen
>
> --
> 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