I'm writing a page where there are several ways to sort data and I need to put anchors in (see my other lovely thread about that). The problem is that depending on how the data is being sorted different anchors need to be inserted in different places. I want to just be able to declare how I want a function (substr) to operate later on and then call it.
so up in my if statements have something like
but the problem is I don't want to refer to $row["field"] NOW, I want to refer to it later when the variable is called. I think I can do it somehow with variable variables, but the documentation doesn't pierce my sleep deprived and tired brain. Thanks a million and a half.
I know this didn't make any sense, but can we just pretend?
so up in my if statements have something like
Code:
$choice = '$row["field"], 0, 1';
I know this didn't make any sense, but can we just pretend?