473,698 Members | 2,737 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Oct 31 '06 #1
2 1112
be*****@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ø
- ki******@NOSPAM betadome.com
(remove NOSPAM to contact me directly)
Oct 31 '06 #2
be*****@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*.
Oct 31 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
15059
by: Marten van Urk | last post by:
I got the following error in my page Parse error: parse error, unexpected T_ELSE in line 25 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Club</title> </head> <style type="text/css">
4
1857
by: Paul Beckett | last post by:
Does anyone know how to prevent an error when using DateTime.Parse? I am using it to format the display of dates in my database. However, some dates are empty and so I get an error when I try to run my webpage. Help please!! paul Beckett
2
2046
by: Andrew Ayers | last post by:
All, I am having a problem with an INSERT onto a table I have created. First off, here is the table: --- CREATE TABLE reg ("customer number" SERIAL PRIMARY KEY, "company name" VARCHAR(50) NULL, address VARCHAR(100) NULL, city VARCHAR(50) NULL, state VARCHAR(2) NULL, zip VARCHAR(50) NULL, phone VARCHAR(50) NULL,
7
2917
by: sara | last post by:
Hi to all i have string y; int x=int.parse(y); when i run the application this exeption is trewn /////////////////////////////////////// Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
8
1900
by: Brett Romero | last post by:
I get this error when I try to run my ASP.NET app on our server: Server Error in '/' Application. -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
3
1925
by: deerhide | last post by:
Hi, I was updating my website, well trying to... and I somehow messed it up. I didnt build it, I bought it so I don't know alot about programming. I receive these errors when going to minbiketrader.com : Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/content/m/i/n/minibiketrader/html/index.php on line 2 Parse error: parse error, unexpected T_REQUIRE_ONCE in /home/content/m/i/n/minibiketrader/html/index.php on line...
1
6184
by: maconbot | last post by:
hi all, please exuse my email ">" i am working on location. > hey team, thanks for the quick reply. > > i am trying to parse a pop3 account and populate it into flash. > > the how to code... > http://www.derickrethans.nl/parsing_mail_with_php.php > > - is this the class? i am really confused how to plug this into my
1
3077
by: =?Utf-8?B?YXZucmFv?= | last post by:
We have a web service that gets data in xml format. In that Xml data, we parse few date fields that are in this format <data datefield="12/26/2008" timefield="16:33:45" ...> we parse it into a DateTime field using DateTime.Parse( datefield ).Add( TimeSpan.Parse( timefield ). For some reason, on 26th of this month from 4pm to 5pm, for certain web service calls, the date field was calculated incorrectly. Like a 12/26/2008 16:00:00 would...
2
3239
by: fburn | last post by:
I need some help with an error I'm getting using php 5.2.5 running on linux. I receive an error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/html/inventoryControl/supplier.php on line 26 (line number changed to match code tags) The code is as follows: // get a supplier using the supplier id
0
8683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9170
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8902
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4623
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2339
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.