php fatal error- no idea why
<p>im getting this error message</p>

<pre><code>Fatal error: Cannot redeclare get_db_conn() (previously declared in `/home/maxer/domains/x/public_html/xmasapp/dbfuncs.php:21) in /home/maxer/domains/x/public_html/xmasapp/dbfuncs.php on line 24`
</code></pre>

<p>this is the code</p>

<pre><code>function get_db_conn() {
  $conn = mysql_connect($GLOBALS['db_ip'], $GLOBALS['db_user'], $GLOBALS['db_pass']);
  mysql_select_db($GLOBALS['db_name'], $conn);
  return $conn;
}
</code></pre>

<p>line 21 refers to </p>

<pre><code>$conn = mysql_connect($GLOBALS['db_ip'], $GLOBALS['db_user'], $GLOBALS['db_pass']);
</code></pre>

<p>line 24 is the closing curly bracket of the function</p>

<p>the code worked fine until I tried to clean my code up, I ripped most of the "view" code out and put it into separate files but didn't  change any logic</p>
