This is a discussion on Parse error - please help within the PHP General forums, part of the PHP Programming Forums category; Hey!! Can anyone please tell me what's wrong with this line. I'm totally lost :s Error: Parse error: ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hey!!
Can anyone please tell me what's wrong with this line. I'm totally lost :s Error: Parse error: parse error, unexpected '.' in C:\Server\www\4images\includes\functions.php on line 479 Code: $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$im age_id.((!empty($mode)) ? "&mode=".$mode : ""))."\" onClick=\"NewWindow=window.open('{media_src}','New Window','toolbar=no,location=no,directories=no,sta tus=no,menubar=no,scrollbars=yes,resizable=yes,wid th=\"". $size[0]; . ",height=" .$size[1];. ",top=0,left=0');\" target=\"detailwindow\">".$thumb."</a>"; Thank you, Tina |
|
|||
|
$thumb = "<a
href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$im age_i*d.((!empty($mode)) ? "&mode=".$mode : ""))."\" I think the error is after ((!empty($mode)) You need a full stop to append the rest of the string and move the question mark to inside the quote before the & ..((!empty($mode))."?&mode=".$mode." : ))\"" |
|
|||
|
aaron.reese@tiscali.co.uk wrote: > $thumb = "<a > href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$im age_i*d.((!empty($mode)) > > ? "&mode=".$mode : ""))."\" > > I think the error is after ((!empty($mode)) > > You need a full stop to append the rest of the string and move the > question mark to inside the quote before the & > > > .((!empty($mode))."?&mode=".$mode." : ))\"" It was the semicolon after $size[0] and $size[1] thanks anyway |