phpSensei Posted January 11, 2008 Share Posted January 11, 2008 Coding for a client, and it says unexpected '=' line 26 Parse error: syntax error, unexpected '=' in /home/arkitect/public_html/architect-jobs-forum/php/listing.php on line 26 <?php define('IN_PHPBB', true); $phpbb_root_path = '../'; include($phpbb_root_path . 'extension.inc'); include($phpbb_root_path . 'common.'.$phpEx); $userdata = session_pagestart($user_ip, PAGE_PROFILE); init_userprefs($userdata); include "dbclass.php"; $objDb = new dbclass(); $recPerPage = 10; $searchCategory = mysql_real_escape_string(strip_tags(htmlentities($_GET['hdnSearchCategory']))); $searchCriteria = "LIKE '".mysql_real_escape_string(strip_tags(htmlentities($_GET['hdnSearchCriteria'])))."%' "; $currentPageNo = mysql_real_escape_string(strip_tags(htmlentities($_GET['hdnCurrentPageNo']))); $sortField = mysql_real_escape_string(strip_tags(htmlentities($_GET['hdnSortField']))); $sortOrder = mysql_real_escape_string(strip_tags(htmlentities($_GET['hdnSortOrder']))); $startLimit = ($currentPageNo * $recPerPage) - $recPerPage; $sql = ""; $sqlResultSet = ""; line 26 $sortOrder = mysql_real_escape_string(strip_tags(htmlentities($_GET['hdnSortOrder']))); This code is on the top top of the page Quote Link to comment https://forums.phpfreaks.com/topic/85472-solved-little-help/ Share on other sites More sharing options...
cunoodle2 Posted January 11, 2008 Share Posted January 11, 2008 Are you sure that is line 26? Based upon the given code that is not line 26. Could you display the 1st 30 lines of the page without giving away and personal sensitive data? Quote Link to comment https://forums.phpfreaks.com/topic/85472-solved-little-help/#findComment-436153 Share on other sites More sharing options...
phpSensei Posted January 11, 2008 Author Share Posted January 11, 2008 <?php define('IN_PHPBB', true); $phpbb_root_path = '../'; include($phpbb_root_path . 'extension.inc'); include($phpbb_root_path . 'common.'.$phpEx); $userdata = session_pagestart($user_ip, PAGE_PROFILE); init_userprefs($userdata); include "dbclass.php"; $objDb = new dbclass(); $recPerPage = 10; $searchCategory = mysql_real_escape_string(strip_tags(htmlentities($_GET['hdnSearchCategory']))); $searchCriteria = "LIKE '".mysql_real_escape_string(strip_tags(htmlentities($_GET['hdnSearchCriteria'])))."%' "; $currentPageNo = mysql_real_escape_string(strip_tags(htmlentities($_GET['hdnCurrentPageNo']))); $sortField = mysql_real_escape_string(strip_tags(htmlentities($_GET['hdnSortField']))); $sortOrder = mysql_real_escape_string(strip_tags(htmlentities($_GET['hdnSortOrder']))); $startLimit = ($currentPageNo * $recPerPage) - $recPerPage; $sql = ""; $sqlResultSet = ""; if($searchCategory == ""){ $searchCategory = "all"; } if(searchCriteria == ""){ searchCriteria = ''; } Quote Link to comment https://forums.phpfreaks.com/topic/85472-solved-little-help/#findComment-436154 Share on other sites More sharing options...
teng84 Posted January 11, 2008 Share Posted January 11, 2008 line 26 is this searchCriteria = ''; you forgot $ sign but i dont know if that is only typo Quote Link to comment https://forums.phpfreaks.com/topic/85472-solved-little-help/#findComment-436156 Share on other sites More sharing options...
phpSensei Posted January 11, 2008 Author Share Posted January 11, 2008 Sorry guys that wasnt lline 26, i am editing someone elses code, its a mess... thanks Quote Link to comment https://forums.phpfreaks.com/topic/85472-solved-little-help/#findComment-436157 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.