Page 1 of 1

I need help with the following error

Posted: Sun Jul 11, 2010 10:05 pm
by BrentK
I am looking for some help with the following error:

Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /home/content/k/u/c/kucharskiba/html/wp-content/themes/JobPress 2/functions-sub.php on line 1882

Here is the code from line 1882:

Code: Select all

echo '<th class="'.($n%2==0?'alternate':'').' check-column" valign="top" style="font-size:11px;"><input  type="checkbox" name="post[]" value="'.$post_arr[$n]->ID.'" style="width:14px; height:14px;" /></th>';
I am new to coding and looking for some help.

Thank you in advance.

Brent

Re: I need help with the following error

Posted: Sun Jul 11, 2010 10:30 pm
by Burrito
at first glance, that line looks fine to me.

try just echoing $post_arr[$n]->ID

and see what you get.

Re: I need help with the following error

Posted: Sun Jul 11, 2010 10:37 pm
by TechZi
please make sure $post_arr[$n]->ID that it is no empty. check it with var_dump($post_arr[$n]);