Parse error - please help

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: ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-31-2006
belovah@gmail.com
 
Posts: n/a
Default 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\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))
? "&amp;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

Reply With Quote
  #2 (permalink)  
Old 11-01-2006
aaron.reese@tiscali.co.uk
 
Posts: n/a
Default Re: Parse error - please help

$thumb = "<a
href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$im age_i*d.((!empty($mode))

? "&amp;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 &amp


..((!empty($mode))."?&amp;mode=".$mode." : ))\""

Reply With Quote
  #3 (permalink)  
Old 11-02-2006
belovah
 
Posts: n/a
Default Re: Parse error - please help


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))
>
> ? "&amp;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 &amp
>
>
> .((!empty($mode))."?&amp;mode=".$mode." : ))\""


It was the semicolon after $size[0] and $size[1]

thanks anyway

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:54 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0