with php 4.1.1 this code works with no errors with 4.2.2 I get undefined variable errors:
Notice: Undefined variable: tempString in c:\program files\apache group\apache\htdocs\ame\test\amttest\htmltable.php on line 69
Notice: Undefined variable: tempString in c:\program files\apache group\apache\htdocs\ame\test\amttest\htmltable.php on line 69
This is the code:
function render() {
while(list($k,$v) = each($this->rows)) {
if ($color == '#999999') {
$color = '#CCCCCC';
} else {
$color = '#999999';
}
$tempString .= $v->render($color);
}
return "<table width=\"".$this->width."\" border=\"".$this->border."\">$tempString</table>";
}
}