Re: mis behaven variable or what is going on
am 27.10.2006 15:16:48 von Captain Paralytic
fedor wrote:
> The next filters out everything
> I would like it to filter which has the value f2
>
>
> $t = $_SESSION[f_or_temp_data][f_or_st_id];
> if (price.size_key == "$t"){
Why have you put the variable $t in quotes, thus making it a variable?
> $t has the value f2 and price.size_key has sometimes the value f2
> Why does it not keep the same values what do I do wrong.
How the H*** can we tell you why price.size_key only sometimes has the
value f2 when you don't show us where it is assigned?
And what has this got to do with SQL???
Re: mis behaven variable or what is going on
am 27.10.2006 15:39:59 von Peter
> How the H*** can we tell you why price.size_key only sometimes has the
> value f2 when you don't show us where it is assigned?
>
> And what has this got to do with SQL???
I think it is posted here because he is using it in a query (it is in
another post called '$t variable in a query'
Also a message to the op. I would advise you change the names of the
variables. If you go back to that code in a few weeks/months you will have
completely forgotten what the variables are. If on the other hand you give
them some proper meaning then it is more likely to jog your memory.
Re: mis behaven variable or what is going on
am 27.10.2006 15:55:27 von Captain Paralytic
peter wrote:
> I think it is posted here because he is using it in a query (it is in
> another post called '$t variable in a query'
That other post also appeared cross posted in comp.lang.php where
others have been answering, despite it being answered here.