Jump to content

1 line Bug .


alij

Recommended Posts

You're using = when you should be using ==.

 

When you say:

 

PS: Everything works fine on firefox.

 

are you implying that the second line works in all browsers even though that has nothing to do with it because PHP is server side.

Link to comment
Share on other sites

 

When you say:

 

PS: Everything works fine on firefox.

 

are you implying that the second line works in all browsers even though that has nothing to do with it because PHP is server side.

 

Yes ! Absolutely.

 

And, I should use = not ==, the "bug" was due to something stupid actually  ::)

Thanks anyway ! Problem solved.

Link to comment
Share on other sites

What was the bug?

 

 

When you say:

 

PS: Everything works fine on firefox.

 

are you implying that the second line works in all browsers even though that has nothing to do with it because PHP is server side.

 

Yes ! Absolutely.

 

And, I should use = not ==, the "bug" was due to something stupid actually  ::)

Thanks anyway ! Problem solved.

Link to comment
Share on other sites

What was the bug?

 

 

When you say:

 

PS: Everything works fine on firefox.

 

are you implying that the second line works in all browsers even though that has nothing to do with it because PHP is server side.

 

Yes ! Absolutely.

 

And, I should use = not ==, the "bug" was due to something stupid actually  ::)

Thanks anyway ! Problem solved.

 

I don't think there was a bug, only mistakes, and at least 1 stupid one.

Link to comment
Share on other sites

Well he said he wanted to use a single = and not == so I wonder what his resolution was.

 

I don't think there was a bug, only mistakes, and at least 1 stupid one.

 

Yes, I misread what he wrote.  I guess I assumed that he didn't mean that because there is no point to put an assignment operator in an IF statement because it will always be true...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.