LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 01: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, 02: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, 02: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, 02: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, 02: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 02:46 PM.
 
Old 03-21-2011, 05:02 PM   #6
ebidr
LQ Newbie
 
Registered: Mar 2011
Posts: 7

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


Reply

Tags
php



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 04:07 PM
What's the meaning of "PHP Parse error: parse error, unexpected $ in..." frandalla Programming 23 03-04-2009 12:34 PM
PHP Error Parse error: parse error, unexpected $ in /home/content/S/k/i/SkinCare4U/h CowanServices Programming 2 12-09-2008 08:26 PM
Parse error: parse error, unexpected '}' in /home/content jouvert Linux - Newbie 3 05-17-2008 06:55 PM
Parse error: parse error, unexpected $ in /home/content/d/o/m/domain/html/addpuppy2.p Scooby-Doo Programming 3 10-25-2007 09:41 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:45 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
Open Source Consulting | Domain Registration