Forum Moderators: coopster

Message Too Old, No Replies

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expect

         

sammy111

10:47 am on Mar 7, 2006 (gmt 0)

10+ Year Member



Hi i get the following error on an event.php script. I am trying to add pop up events to a calendar. But I get the following error message:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/kxenuqbo/public_html/event.php on line 32

The block of code near line 32 is:

if (@mysql_num_rows($getEvent_res) > 0) {
while ($ev = @mysql_fetch_array($getEvent_res)) {
$event_title = stripslashes($ev['event_title']);
$event_shortdesc = stripslashes($ev['event_shortdesc']);
$fmt_date = $ev['fmt_date'];
$event_txt .= "<P><strong>$fmt_date</strong>:$event_title<br>$event_shortdesc";
}
}

Line 32 is $event_title = stripslashes($ev['event_title']);

I cant seem to figure out what it is.
Your help in this matter would be much appreciated

dreamcatcher

12:58 pm on Mar 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can`t see anything there that would create a parse error. Are you sure thats the correct line?

dc