![]() |
|
#1
|
|||
|
|||
Hi, T-string error,am completely new here and need helpHi
Firstly if I am in the wrong section I apologise, I found another message with T_string mentioned and thought someone may be able to help. My husband and I have just started a new web site and decided to change our opening page. I thought if we just wrote the new text in the existing parameters (not knowing much about html etc) we would be right. Now we have an error on our opening page and don't know what is wrong. The error is: Parse error: parse error, unexpected T_STRING in /home/lipcom14/public_html/shop/includes/languages/english/index.php on line 13. The text we are trying to put in is: PHP Code:
define('TEXT_MAIN', 'Thank you for visiting our site, 14lip.com.<br><br>We would also like to thank all our new customers who have made our first three weeks of operation very exciting. It is great to see you all taking advantage of the fantastic specials we have sent to you in our newsletters and check back soon to see who has won our first monthly competition. If you haven't visited before please take the time to look at our exciting and sexy range of lingerie and adult toys and products we have for you to purchase. Our range includes sexy lingerie, new adult toys and products you may have never seen before and lovely gifts for your lover, friend or as a gift for a wedding, birthday etc.<br> There is more to the page but I am guessing line 13 is from the top. We have not changed any script after this. Please help me, I have tried to find tutorials etc but am at a loss. Thank you Tracey Last edited by LuciWiz : 02-Jan-2006 at 09:45.
Reason: Please insert your Php code between [php] & [/php] tags
|
|
#2
|
||||
|
||||
Re: Hi, T-string error,am completely new here and need helpQuote:
Quote:
Now, I used the code tags to allow your php to be highlighted. See how the apostrophe is messing up the markup. You may need to use It’s to do what you want. Mark __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#3
|
|||
|
|||
Re: Hi, T-string error,am completely new here and need helpThank you Mark for your reply, but because I am so new to this what does:
' It’s ' mean? Sorry to be a pain. Thanks Tracey |
|
#4
|
||||
|
||||
Re: Hi, T-string error,am completely new here and need helpQuote:
What it means is you have to do something about the single quote you are using for the contraction It's. One way to display that would be to use the character entity Right Side Quote, or, as it needs to be referred to, ’ noting the need for the semi-colon at the end. Do this to start. Remove the apostophy (hmmm, I made an error in my first post) in haven't or change the text to have not and see if that fixes your problem. Mark __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#5
|
|||
|
|||
Re: Hi, T-string error,am completely new here and need helpDo this to start. Remove the apostophy (hmmm, I made an error in my first post) in haven't or change the text to have not and see if that fixes your problem.
Mark[/quote] Hi Mark I got rid of the apostrophe and tried a semi colon and got another error. Am I asking too much if you could write the whole line so I could see what I need to type?it would work, I can understand if you don't you have alreay tried to help more than I thought you would. Let me know either way. Thanks Tracey |
|
#6
|
||||
|
||||
Re: Hi, T-string error,am completely new here and need helpPHP Code:
change this line to ... PHP Code:
to this and see if it solves your problem. Mark __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#7
|
|||
|
|||
Re: Hi, T-string error,am completely new here and need helpHi Mark
I copied your new text onto my site as can be see below and I am stil getting an error but no T_string error Parse error: parse error, unexpected '[' in /home/lipcom14/public_html/shop/includes/languages/english/index.php on line 13 Does that mean I am closer tofixing this? Thanks for your patience Tracey " PHP Code:
|
|
#8
|
||||
|
||||
Re: Hi, T-string error,am completely new here and need helpHmmm, I don't even see a square bracket in your code.
Well, try this... PHP Code:
I don't think that is the answer though. Could you post a bit more of the code around your problem area. Perhaps it is something else leaking in. When posting code surround it with the [php] and [/php] tags so it is marked up. Sometimes that alone is helpful in finding errors. Mark Edit, I just looked at your site and it is not a square bracket [ but a less than < that is the problem... __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#9
|
|||
|
|||
Re: Hi, T-string error,am completely new here and need helpThis is the entire page I have added the php etc at the beginning of the text tha has the problem and at the end. (They are not in the original)
<?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ PHP Code:
|
|
#10
|
||||
|
||||
Re: Hi, T-string error,am completely new here and need helpPHP Code:
That should take care of it. __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
Recent GIDBlog
Flickr uploads of IA pictures by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The