PHP: Variable Scope Question/Referencing Variables
<pre><code>&lt;?php
function table() {
   ot();
   for($x=0; $x&lt;$rows; $x++) {  
   table_row($x);
}
   ct();
}
?&gt;
</code></pre>

<blockquote>
  <p>Notice: Undefined variable: rows in
  .../scratch.php on
  line 12</p>
</blockquote>

<p>Hi, </p>

<p>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. </p>

<p>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! </p>

<p>thx,</p>
