Jump to content

[SOLVED] unexpected ','


ohdang888

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.