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:
$hike_id = mysql_real_escape_string($_GET['hike_id']);
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:
[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
The error it is referring to is a function that is in the connect script.
But if I remove the
include '../connect.php';
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.