[php]creating value($bla)[help]

no he didnt
in the if, he said if $gender == 'male'
that means if anywhere b4 the script it ACTUALLY SAID $gender = "male"; then it would work.
otherwise it would go to sh** = 0
 
Last edited by a moderator:
Like superfun said



by doing $gender = "male" You gave $gender the text "male" :P



no he didnt

in the if, he said if $gender == 'male'

that means if anywhere b4 the script it ACTUALLY SAID $gender = "male"; then it would work.

otherwise it would go to sh** = 0
Lol.. Your both mistaken. :P
G_Network,
SuperFun didn't give any explanation as to why the first script didn't work. But you're right, that's what happens when you set it up like that.

Andrew, You're a cat with attitude :w00t:
But G_Network didn't mean what you thought he did. But your facts are right too :tongue:
 
Last edited by a moderator:
no he didnt
in the if, he said if $gender == 'male'
that means if anywhere b4 the script it ACTUALLY SAID $gender = "male"; then it would work.
otherwise it would go to sh** = 0
script said $gender = 'male' which basicly does nothing becouse its $gender = 'male'; so i fixed the problem on the first place?
 
Last edited by a moderator:
what's the difference? :?: works on both ways :sleep:

It does, but what EliteGM shows, is a different way of writing code, which is considered to be better readable and used more widely. Good indentation helps you keeping the code clean.
 
Back