I have a JavaScript function calling a PHP script call. So far, so good. The problem occurs when I try to do this:
$hike_id = mysql_real_escape_string($_GET['hike_id']);
When I import a connection file, it gives me an error that the functions in this file are already 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 referenced is a function that is in the script connection.
But if I remove
include '../connect.php';
Then it will just tell me that I cannot use the mysql_real_escape_string function. Therefore, I was kind of stuck between the inability to use any option.
Genadinik
source share