PHP error - cannot redeclare function
<p>I have a JavaScript function making a call to a PHP script.  So far so good.  A problem happens when I try to do this:</p>

<pre><code>$hike_id = mysql_real_escape_string($_GET['hike_id']);
</code></pre>

<p>When I import my connection file, it gives me an error that the functions in that file have already been defined and the error is this:</p>

<pre><code>[Fri Jun 10 12:34:43 2011] [error] [client 75.24.105.18] PHP Fatal error:  Cannot redeclare hassuspicioushackerstrings() (previously declared in /home/webadmin/comehike.com/html/connect.php:16) in /home/webadmin/comehike.com/html/connect.php on line 40
</code></pre>

<p>The error it is referring to is a function that is in the connect script.</p>

<p>But if I remove the </p>

<pre><code>include '../connect.php';
</code></pre>

<p>Then it will just tell me that I can not use the mysql_real_escape_string function. So I am kind of stuck between not being able to use either option.</p>
