LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   I have a parse error..Please help!!! (http://www.linuxquestions.org/questions/programming-9/i-have-a-parse-error-please-help-870041/)

ebidr 03-21-2011 01:59 PM

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,

posixculprit 03-21-2011 02:19 PM

Hello.

Quote:

' You just won it! It's Yours!', $text_message,

ebidr 03-21-2011 02:27 PM

Hello, I am not sure what you are saying is the problem...

ebidr 03-21-2011 02:35 PM

Oh I see...But isn't that the right way to write it? Like this (it's yours) not (its yours)

posixculprit 03-21-2011 02:45 PM

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

ebidr 03-21-2011 05:02 PM

Thank you so much!!


All times are GMT -5. The time now is 05:41 AM.