Re: Can I alter the $row->name1 number of a variable?
Posted: Thu Apr 02, 2015 2:42 am
Because catid *IS* always the same, as this is the Edit page for the product. One product is assigned to one catid.
And no, an answer to this $variable issue has not been resolved.
I asked why that $row->{$prod} wasn't working, and no one has said "no it should be done like this...".
I've only been told "change all your code, so it works the way I do it".... not "yes, you need it to be like this to match the rest of your code.
If I cannot really get answer here, I'll just do it a longer way around, which I understand and which I know works for me, and avoids any further interuptions so the client can get on and deal with his products.
One of the issues with this forum (I don't find regularly, but often), is that people want to have someone change all their code that they understand.
While they probably know better, they must also appreciate that this code I have written, WORKS. I understand how it works, and why it is written like that.
So to utterly change it, would blow my mind, and take me even more time to learn right here and now.
99% of this page works. It's just this one variable issue that doesn't.
I keep getting quotes on my comments back, with a a reason they think it should be all ripped out and changed. No.
Imagine I am a deal selling a car. The wheel turns fine. The car works fine. Everyone is happy. But the wheel bolt won't fit. If the bolt can be adjusted to just go on, that's great. But I am not really going to take the wheel and tyre apart, take out all the bearings and wheel fitment and learn how it all works in there... when it WORKS. And it's just that bolt that needs filing, or a slightly different shaped bolt from a drawer is needed instead.
Odd analogy I grant you - but it's one I understand.
And no, an answer to this $variable issue has not been resolved.
I asked why that $row->{$prod} wasn't working, and no one has said "no it should be done like this...".
I've only been told "change all your code, so it works the way I do it".... not "yes, you need it to be like this to match the rest of your code.
If I cannot really get answer here, I'll just do it a longer way around, which I understand and which I know works for me, and avoids any further interuptions so the client can get on and deal with his products.
One of the issues with this forum (I don't find regularly, but often), is that people want to have someone change all their code that they understand.
While they probably know better, they must also appreciate that this code I have written, WORKS. I understand how it works, and why it is written like that.
So to utterly change it, would blow my mind, and take me even more time to learn right here and now.
99% of this page works. It's just this one variable issue that doesn't.
I keep getting quotes on my comments back, with a a reason they think it should be all ripped out and changed. No.
Imagine I am a deal selling a car. The wheel turns fine. The car works fine. Everyone is happy. But the wheel bolt won't fit. If the bolt can be adjusted to just go on, that's great. But I am not really going to take the wheel and tyre apart, take out all the bearings and wheel fitment and learn how it all works in there... when it WORKS. And it's just that bolt that needs filing, or a slightly different shaped bolt from a drawer is needed instead.
Odd analogy I grant you - but it's one I understand.