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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.