Cant seem to find the culprit line :(
Heres the code: - <?
-
-
echo"
-
-
<center>
-
-
<!-- AMAZON CODE STARTS HERE -->
-
-
<SCRIPT charset="utf-8" type="text/javascript" src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822/US/aerocom05-20/8002/ab0febc9-fc42-435e-bae7-18b3dd299162"> </SCRIPT> <NOSCRIPT><A HREF="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Faerocom05-20%2F8002%2Fab0febc9-fc42-435e-bae7-18b3dd299162&Operation=NoScript">Amazon.com Widgets</A></NOSCRIPT>
-
-
<!-- AMAZON CODE ENDS HERE -->
-
-
</center>
-
-
";
-
-
?>
1 2155 Atli 5,058
Expert 4TB
Hey.
You can not use double-quotes inside a double-quoted string. The first double-quote following the opening quote will be read as the closing quote, which means that anything that follows is read as PHP code, thus causing errors if it doesn't happen to be valid PHP. -
<?php
-
# INVALID! Causes a parse error.
-
$str = "He said: "Hello, World!"";
-
-
# VALID! Escaping the quote with a \ allows you
-
# to put double-quotes into a double-quoted string.
-
# Same goes for single-quoted strings.
-
$str = "He said: \"Hello, World!\"";
-
-
# Also VALID. You can put double-quotes into
-
# single-quoted strings, and vice versa.
-
$str = 'He said: "Hello, World!"';
-
?>
-
Sign in to post your reply or Sign up for a free account.
Similar topics
by: kestrel |
last post by:
I have some html code that is supposed to be displayed by php echo. But for some reason i keep getting a syntax error, and i cant figure out what is going on.
Heres what i have
<?php...
|
by: rhys |
last post by:
My Gurus and Angels --
Please pardon this old-school programmer, only recently enlightened to open-source, having been trapped in the convenience of proprietary lingos for way too long. My...
|
by: goodguyjam |
last post by:
Hi all,
I'm having trouble with mysql.
I've just finished my php coding for HTTP authentication and with some help am now getting a login window pop up whenever I click on a link on my website...
|
by: sclarkstone |
last post by:
Im getting this error;
Parse error: syntax error, unexpected T_STRING, expecting ':' or ';'
with this line;
header ('postcodesearch.php?e=nw&pcode=',);
I cant find whats wrong, can anyone...
|
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...
|
by: paulrajj |
last post by:
hi to all,
i am getting syntax error on my code..
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in D:\xampp\htdocs\Dummy\paulraj\matrim\exam.php on line 62
...
|
by: benicio |
last post by:
Parse error: syntax error, unexpected T_STRING, expecting '(' in C:\wamp\www\study_group\includes\functions.php on line 19
I got this error and this syntax is from 8 to 19th line.
<?php
...
|
by: hsriat |
last post by:
<?php
//Content_Page class
class Content_Page {
private $title = array();
private $content = array();
private $js = array();
function __construct($title, $content, $js) {
|
by: riverdale1567 |
last post by:
Hi I am a newbie trying to get some of my first code working, yada yada yada.
I have a drop down box which chooses a state then takes the post data to 'processform2.php' to use that to pull up...
|
by: 9139530 |
last post by:
Hey, I'm getting the error:
Parse error: syntax error, unexpected T_VARIABLE in Z:\home\baza\www\get2.php on line 7
with this code (have 2 pages , html-from page (reguser.php) and...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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,...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
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...
| | |