FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Comments legal? For loop legal?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Comments legal? For loop legal? [message #170522 is a reply to message #170521] Fri, 05 November 2010 21:56 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 11/5/2010 5:44 PM, Brian Smither wrote:
> I'm getting T_ELSE errors and I wonder if there are issues with the
> following lines of code...
>
> // Digital Product : BEGIN
>
> Would a colon ever constitute a beginning or ending of a script block?
>
>

Not in a comment.

>
> for($j=0;$j<count($results);$j++) {
>
> Would lack of white space after the semi-colons ever cause a problem?
>
>
>

Nope, whitespace is optional here (as it is in much of PHP).

Your problem lies elsewhere - most certainly before the line the error
message is calling out. It could be a lot of things, i.e. a mismatched
single or double quote, missing braces or many other things.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: There is some framework/tool to generate PHP code
Next Topic: urls in php
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 21:07:24 GMT 2024

Total time taken to generate the page: 0.03984 seconds