I have a $row from mysql_fetch_array, and a field name in $this->match_row.
When I do the following it doesn't work:
if (stristr($row[$this->match_field], $this->match_string)!=false) {
even when it should.
I broke it down into:
$s=$this->match_field; // this is ok
$t=$row[$s]; // this comes out blank.
I also tried:
$t=$row[$this->match_field]
and
$t=$row["$this->match_field"] to no avail.
Anyone done this before?
Thanks!