Forum Topic: Php: Main

(49,831 views • 607 replies)

This topic is 21 pages long. [ 1713 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 ]

<< < > >>
None

DearonElensar

Reply To Post Reply & Quote

Posted at: 8/9/08 04:35 PM

DearonElensar LIGHT LEVEL 18

Sign-Up: 06/10/02

Posts: 1,712

At 8/9/08 04:22 PM, ZiggyZack99 wrote: if ($DFox[Status] = "Yes" | $DFox[Status] = true) {

Also, Status is not always Yes. Status is an array element retreived from the _GET array. If it is false, then *ssslcckkkk* (throat-cutting noise). Srsly, answer the question. Also, a pipe is OR. Don't say it's not, I've used it like that before.

A = means is, if you want to compare 2 variables use == (or even === in certain cases), right now you say that status is Yes.
And an or is || not | so that fails horribly too.
So basically this if fails really hard, please please go fix up your coding standards before doing something else :(

BBS Signature

Happy

ZiggyZack99

Reply To Post Reply & Quote

Posted at: 8/9/08 07:30 PM

ZiggyZack99 DARK LEVEL 15

Sign-Up: 04/15/07

Posts: 2,783

At 8/9/08 04:35 PM, DearonElensar wrote:
At 8/9/08 04:22 PM, ZiggyZack99 wrote: if ($DFox[Status] = "Yes" | $DFox[Status] = true) {

Also, Status is not always Yes. Status is an array element retreived from the _GET array. If it is false, then *ssslcckkkk* (throat-cutting noise). Srsly, answer the question. Also, a pipe is OR. Don't say it's not, I've used it like that before.
A = means is, if you want to compare 2 variables use == (or even === in certain cases), right now you say that status is Yes.
And an or is || not | so that fails horribly too.
So basically this if fails really hard, please please go fix up your coding standards before doing something else :(

Half right. Thanks for pointing that glaring hole in my code out to me. = is for assignment, == is for comparing. However, if | is not or, how come it works as such on my site? And don't worry, I try to "fix up my coding standards" every day. :)


Shouting

ZiggyZack99

Reply To Post Reply & Quote

Posted at: 8/9/08 07:32 PM

ZiggyZack99 DARK LEVEL 15

Sign-Up: 04/15/07

Posts: 2,783

Also, answer the question. Is DFox going to update this anymore? He hasn't posted in a month.

sry bout teh dubblepost

None

ZiggyZack99

Reply To Post Reply & Quote

Posted at: 8/9/08 07:45 PM

ZiggyZack99 DARK LEVEL 15

Sign-Up: 04/15/07

Posts: 2,783

At 8/9/08 07:40 PM, DearonElensar wrote: http://nl.php.net/manual/en/language.ope rators.logical.php

Lol, I was wrong all that time! Srsly, programming fodder aside, is DFox ever going to update this?


None

Jon-86

Reply To Post Reply & Quote

Posted at: 8/9/08 08:15 PM

Jon-86 NEUTRAL LEVEL 13

Sign-Up: 01/30/07

Posts: 3,197


None

DearonElensar

Reply To Post Reply & Quote

Posted at: 8/17/08 11:01 AM

DearonElensar LIGHT LEVEL 18

Sign-Up: 06/10/02

Posts: 1,712

I suppose your Ziggy or whatever, but this is a really bad idea.
There is a reason we post the list in this topic and not on a profile.
Right now there is no real reason to update the list in my opinion so we can just as well wait until there is a new tutorial that we can agree upon should be in the list.

BBS Signature

None

Jessii

Reply To Post Reply & Quote

Posted at: 8/17/08 12:10 PM

Jessii DARK LEVEL 36

Sign-Up: 02/10/05

Posts: 9,030

The "spoiled brattiness" of the last few posts have actually be the ones to kill this topic. When someone comes up with a new PHP tutorial, they'll post it and it can get updated without a problem but since no one's posted a tutorial in a while, it's not necessary to update it.

False-Positive // MySpace

I'm out of town until August 18th.


All times are Eastern Daylight Time (GMT -4) | Current Time: 05:22 PM

<< Back

This topic is 21 pages long. [ 1713 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 ]

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!