I added following few lines on top of my PHP code, but it is giving error the error is
Function name must be a string in /home/developeriq/public_html/doylesweb/hotel_search.php on line 3
if(!isset($_session)) {
$session_start();}
Your code is wrong:
if(!isset($_session)) {
$session_start();}
$session_start() should be session_start(). $ is for variables, session_start() is a function, not a variable, thus, $ is not required.
Also, it must be capitalised as it's a superglobal array. (Credits to @AkshayPrakash for pointing out)
if(!isset($_SESSION)) {
session_start();}
Documentation: http://php.net/manual/en/reserved.variables.session.php
$_session should be $_SESSION