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'])); } ?> 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 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. Link to comment https://forums.phpfreaks.com/topic/110229-solved-unexpected/#findComment-565627 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.