Jump to content

[SOLVED] little help


phpSensei

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/85472-solved-little-help/
Share on other sites

<?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 = '';

}

Link to comment
https://forums.phpfreaks.com/topic/85472-solved-little-help/#findComment-436154
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.