LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 03-21-2011, 02:59 PM   #1
ebidr
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Rep: Reputation: 0
I have a parse error..Please help!!!


Hi, I have received this error and I have no idea how to fix it..Please anyone help?

Here is the error...Parse error: syntax error, unexpected T_STRING in /home/tennbid/public_html/language/english/mails/sale_buyer_notification.php on line 73

And here is the line for the code...
send_mail($sale_details['email'], 'Auction ID: ' . $sale_details['auction_id'] . ' You just won it! It's Yours!', $text_message,
 
Old 03-21-2011, 03:19 PM   #2
posixculprit
Member
 
Registered: May 2010
Posts: 136

Rep: Reputation: 42
Hello.

Quote:
' You just won it! It's Yours!', $text_message,
 
Old 03-21-2011, 03:27 PM   #3
ebidr
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Hello, I am not sure what you are saying is the problem...
 
Old 03-21-2011, 03:35 PM   #4
ebidr
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Oh I see...But isn't that the right way to write it? Like this (it's yours) not (its yours)
 
Old 03-21-2011, 03:45 PM   #5
posixculprit
Member
 
Registered: May 2010
Posts: 136

Rep: Reputation: 42
I.. erh.. you're not seeing it? Ok. Consider the following string:

Code:
'it's a strange world but it's ok'
Which ' should terminate the string (why, and how is this obvious to a computer program which can't understand English)? There are multiple ways to go about this:

Code:
'it\'s a strange world but it\'s ok'
Code:
"it's a strange world but it's ok"
http://www.php.net/manual/en/language.types.string.php

Last edited by posixculprit; 03-21-2011 at 03:46 PM.
 
Old 03-21-2011, 06:02 PM   #6
ebidr
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you so much!!
 
  


Reply

Tags
php


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: parse error, unexpected '/' - can anyone see the error in this code? v@ny@ Programming 8 04-03-2010 05:07 PM
What's the meaning of "PHP Parse error: parse error, unexpected $ in..." frandalla Programming 23 03-04-2009 01:34 PM
PHP Error Parse error: parse error, unexpected $ in /home/content/S/k/i/SkinCare4U/h CowanServices Programming 2 12-09-2008 09:26 PM
Parse error: parse error, unexpected '}' in /home/content jouvert Linux - Newbie 3 05-17-2008 07:55 PM
Parse error: parse error, unexpected $ in /home/content/d/o/m/domain/html/addpuppy2.p Scooby-Doo Programming 3 10-25-2007 10:41 AM


All times are GMT -5. The time now is 08:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration