1.

Solve : really weird error... can php malfunction??

Answer»

i am getting this error: Parse error: syntax error, unexpected T_VARIABLE in /home/socialap/public_html/posters/include/rating_system/rate.php on line 1


from this code:

connect.php has no errors... i've already tested it. Maybe i'm just BLIND, but i can't seem to FIND out why i would ever get this error!?!?

thanks.

include('../../connect.php');
$id = mysql_real_escape_string($_GET['id']);
$rating = mysql_real_escape_string($_GET['rating']);

if(empty($id) or empty($rating) or $rating > 5){
die("Invalid poster/no rating");
}I don't SEE any errors either. Line 1 is

include('../../connect.php');

TRY removing the full STOPS and slashes.

include("connect.php");



Discussion

No Comment Found