ohdang888 Posted June 14, 2008 Share Posted June 14, 2008 error and my code: Thanks! Parse error: syntax error, unexpected ';' in /home/e0120590/public_html/assets/pages/searched.php on line 26 <?php include('../../include/header.php'); include('connect.php'); if(isset($_POST['habitat'])){ $habitat = mysql_real_escape_string(trim($_POST['habitat'])); } if(isset($_POST['humidity'])){ $humidity = mysql_real_escape_string(trim($_POST['humidity']); // this is line 26 } if(isset($_POST['speed'])){ $speed = mysql_real_escape_string(trim($_POST['speed'])); } ?> Quote Link to comment https://forums.phpfreaks.com/topic/110229-solved-unexpected/ Share on other sites More sharing options...
wildteen88 Posted June 14, 2008 Share Posted June 14, 2008 You are missing a closing ) at the end of line 26 $humidity = mysql_real_escape_string(trim($_POST['humidity'])); // this is line 26 Quote Link to comment https://forums.phpfreaks.com/topic/110229-solved-unexpected/#findComment-565613 Share on other sites More sharing options...
ohdang888 Posted June 14, 2008 Author Share Posted June 14, 2008 wow. its always stupid mistakes. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/110229-solved-unexpected/#findComment-565627 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.