<?php
function table() {
ot();
for($x=0; $x<$rows; $x++) {
table_row($x);
}
ct();
}
?>
Notice: Undefined variable: rows in .../scratch.php on line 12
Hi,
This function is returning an error because $rows is not defined locally. I define the variable $rows in another php script, which is referenced via "includes('includes.php')" at the top of this script file.
How do I pass or "reference" the variable $rows into this function? As you can tell, I'm still learning PHP and any help is greatly appreciated!
thx,