View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Show Records If

Thread began 9/16/2009 5:05 pm by info271221 | Last modified 9/17/2009 6:15 pm by info271221 | 1871 views | 10 replies


variable error

Now I get this error:
PHP Parse error: syntax error, unexpected '=' in D:\Websites\www.myDomain\RecordWhiteTail\whitetaildeer_Results2.php on line 132

I am using security assist for member access levels and the id is being used for the session variable. Here is the code from the helper page:
case "Logged in to member_directory":
$comparisons[0] = array(TRUE, "".((isset($_SESSION['id']))?$_SESSION['id']:"") ."", 2, "");

Below is the code on my results page:

$maxRows_WADAdeer = 25;
if ($_SESSION['id']) {
$maxRows_WADAdeer> = 25;

} else {

$maxRows_WADAdeerLimit> = 5;


$pageNum_WADAdeer = 0;
if (isset($_GET['pageNum_WADAdeer'])) {
$pageNum_WADAdeer = $_GET['pageNum_WADAdeer'];
$startRow_WADAdeer = $pageNum_WADAdeer * $maxRows_WADAdeer;

mysql_select_db($database_myDomain, $myDomain);
$query_WADAdeer = "SELECT DClass, DMethod, DScore, DPoints, DCountyOfKill, DYearOfKill, DHunterFirst, DHunterMiddle, DHunterLast, DMeasurerFirst, DMeasurerLast, PhotoIDfromGal, DeerID FROM deer ORDER BY DScore DESC";
$query_limit_WADAdeer = sprintf("%s LIMIT %d, %d", $query_WADAdeer, $startRow_WADAdeer, $maxRows_WADAdeer);
$WADAdeer = mysql_query($query_limit_WADAdeer, $myDomain) or die(mysql_error());
$row_WADAdeer = mysql_fetch_assoc($WADAdeer);

if (isset($_GET['totalRows_WADAdeer'])) {
$totalRows_WADAdeer = $_GET['totalRows_WADAdeer'];
} else {
$all_WADAdeer = mysql_query($query_WADAdeer);
$totalRows_WADAdeer = mysql_num_rows($all_WADAdeer);
$totalPages_WADAdeer = ceil($totalRows_WADAdeer/$maxRows_WADAdeer)-1;

mysql_select_db($database_myDomain, $myDomain);
$query_rsCounty = "SELECT DISTINCT DCountyOfKill FROM deer ORDER BY DCountyOfKill ASC";
$rsCounty = mysql_query($query_rsCounty, $myDomain) or die(mysql_error());
$row_rsCounty = mysql_fetch_assoc($rsCounty);
$totalRows_rsCounty = mysql_num_rows($rsCounty);

mysql_select_db($database_myDomain, $myDomain);
$query_rsYear = "SELECT DISTINCT DYearOfKill FROM deer ORDER BY DYearOfKill ASC";
$rsYear = mysql_query($query_rsYear, $myDomain) or die(mysql_error());
$row_rsYear = mysql_fetch_assoc($rsYear);
$totalRows_rsYear = mysql_num_rows($rsYear);

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...