List Info

Thread: Parse error - please help




Parse error - please help
user name
2006-11-01 09:36:14
This should work


$thumb = "<a
href="".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode))? "&amp;mode=".$mode : "")).""
onClick="NewWindow=window.open('{media_src}','NewWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="".
$size[0] . ",height="  .$size[1]. ",top=0,left=0');"
target="detailwindow">;".$thumb."</a>";



----- Original Message ----
From: belovah <belovahgmail.com&gt;
To: PHP-Masters <PHP-Mastersgooglegroups.com>
Sent: Tuesday, October 31, 2006 9:46:54 PM
Subject: [PHP - MASTERS] 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:Serverwww4imagesincludesfunctions.php on line 479

Code:
$thumb = "<a
href="".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode))
? "&amp;mode=".$mode : "")).""
onClick="NewWindow=window.open('{media_src}','NewWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="".
$size[0]; . ",height="  ;.$size[1];. ",top=0,left=0');"
target="detailwindow">;".$thumb."</a>";


Thank you,

Tina



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "PHP-Masters&quot; group.
To post to this group, send email to PHP-Mastersgooglegroups.com
To unsubscribe from this group, send email to PHP-Masters-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/PHP-Masters
-~----------~----~----~----~------~----~------~--~---

Parse error - please help
user name
2006-11-01 09:38:31
try this


Code:
 $thumb = <<<OEM

put your codes here, you dont have to escape the quotes...
80)

OEM;

Thank you,

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "PHP-Masters" group.
To post to this group, send email to PHP-Mastersgooglegroups.com
To unsubscribe from this group, send email to
PHP-Masters-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups-beta.google.com/group/PHP-Masters
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )