Parse error - please help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • belovah@gmail.com

    #1

    Parse error - please help

    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\4 images\includes \functions.php on line 479

    Code:
    $thumb = "<a
    href=\"".$site_ sess->url(ROOT_PATH. "details.php?". URL_IMAGE_ID."= ".$image_id.((! empty($mode))
    ? "&amp;mode=".$m ode : ""))."\"
    onClick=\"NewWi ndow=window.ope n('{media_src}' ,'NewWindow','t oolbar=no,locat ion=no,director ies=no,status=n o,menubar=no,sc rollbars=yes,re sizable=yes,wid th=\"".
    $size[0]; . ",height=" .$size[1];. ",top=0,left=0' );\"
    target=\"detail window\">".$thu mb."</a>";


    Thank you,

    Tina

  • Kim André Akerø

    #2
    Re: Parse error - please help

    belovah@gmail.c om wrote:
    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\4 images\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)) ? "&amp;mode=".$m ode : ""))."\"
    onClick=\"NewWi ndow=window.ope n('{media_src}' ,'NewWindow','t oolbar=no,
    location=no,dir ectories=no,sta tus=no,menubar= no,scrollbars=y es,resizab
    le=yes,width=\" ". $size[0]; . ",height=" .$size[1];.
    ",top=0,left=0' );\" target=\"detail window\">".$thu mb."</a>";
    The error is in reference to $size[0] and $size[1], which ends with a
    semicolon (marking the end of code line for PHP).

    --
    Kim André Akerø
    - kimandre@NOSPAM betadome.com
    (remove NOSPAM to contact me directly)

    Comment

    • Pedro Graca

      #3
      Re: Parse error - please help

      belovah@gmail.c om wrote:
      Can anyone please tell me what's wrong with this line. I'm totally lost
      >
      Error:
      Parse error: parse error, unexpected '.' in
      C:\Server\www\4 images\includes \functions.php on line 479
      >
      Code:
      $thumb = "<a
      href=\"".$site_ sess->url(ROOT_PATH. "details.php?". URL_IMAGE_ID."= ".$image_id.((! empty($mode))
      ? "&amp;mode=".$m ode : ""))."\"
      onClick=\"NewWi ndow=window.ope n('{media_src}' ,'NewWindow','t oolbar=no,locat ion=no,director ies=no,status=n o,menubar=no,sc rollbars=yes,re sizable=yes,wid th=\"".
      $size[0]; . ",height=" .$size[1];. ",top=0,left=0' );\"
      ============^

      target=\"detail window\">".$thu mb."</a>";
      --
      I (almost) never check the dodgeit address.
      If you *really* need to mail me, use the address in the Reply-To
      header with a message in *plain* *text* *without* *attachments*.

      Comment

      Working...