Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1289 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

Whats wrong with this code?

Thread title: Whats wrong with this code?
Reply    
    Thread tools Search this thread Display Modes  
09-04-2009, 10:39 PM
#1
developer_x is offline developer_x
Status: Junior Member
Join date: Mar 2005
Location: Copenhagen
Expertise:
Software:
 
Posts: 88
iTrader: 0 / 0%
 

developer_x is on a distinguished road

  Old  Whats wrong with this code?

Hi all,

I get the error

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/whichpro/public_html/hair-loss/php/config.php on line 27
Could you guys please help me on whats wrong with the code below?

PHP Code:
<?php
$website_name 
"The Top 3 Hair Loss Treatment Product Reviews";
$tagline "Learn How to Grow Hair Naturally";
$introduction "The reasons for hair loss can be various, such as stress, pregnancy, chronic ailments, genetic reasons and so on and so forth. The tendency of hair loss is noticed more in men, but women also suffer from this problem quite often. When we start losing hair, we become desperate to find a solution, as even the most expensive hairstyle will improve our looks if there is not much hair on the head in the first place.<br>
<br>
There are three common solutions to hair loss problem, such as wearing a wig, hair weaving and <b>using herbal hair loss products</b>. Wearing a wig or hairpiece can only be a temporary solution. You cannot possibly think of impressing a person of the opposite sex by wearing a wig for you will eventually be found out. Hair weaving is an expensive surgical procedure. Therefore, no wonder <b>many people resort to herbal hair loss treatments</b> in order to stop hair loss or if even to have the hair re-grown. <br>
<br>
Herbal hair loss products have <b>many advantages</b> over other solutions to hair loss. First, <b>you are going to have your own, natural hair</b>. Also, herbal products <b>will not have any harmful side effects</b>. In fact, your scalp will be nourished by various herbs used in the product and your hair will look healthy and shiny. We have reviewed a number of herbal hair loss products available in the market. In order to do this, we have looked at surveys taken by the users of the products, visited product reviews, forums and blogs, checked the customer service and return policies, and most importantly, the testimonials of users. Remember, this is not a scientific study, but we have covered as many aspects of each product as you can think of.<br>"
;

$first_link "http://www.pro2.com/?aid=843380";
$first_link_description "Pro2™ - The No. 1 Herbal Hair Loss Product";
$first_image "<img src='style/images/prov2.jpg' alt='banner ad' title='Banner Ad' />";
$rating_1 "Results Achieved";
$rating_2 "Ease of Use";
$rating_3 "Effectiveness";
$rating_4 "Customer Support";
$first_review "<b>Provillus ™</b> <a href='http://www.pro2.com/?aid=843380'>(www.pro2.com/)</a> came out on the top of the herbal hair loss products according to our study. Most people using this product have voted it to be the best one that they have ever tried. The product uses all-natural components to create a world-class hair loss solution that is much more effective than most other herbal products. It is quite unusual to get such quick results by using a <b>100% natural</b> product. <b>The success rate of the product is truly amazing</b>. This is probably because of the unique formulation of the product and the quality of the ingredients used to produce it.<br>

<br>

<b>Provillus™</b>  for men and women use different ingredients to address the needs to two different sexes. This is quite logical as the reasons of hair fall differ widely between men and women. <b>Provillus™</b> also offers an excellent customer support system that includes a live chat option and a 1-800 number. The product comes with a no-questions-asked money back guarantee if you are not satisfied with the product and return it unused within 90 days. We are pretty sure that you will not have to use this facility as the product is bound to work for you as with numerous other users.

"
;
$first_feature_1 "Easy To Use";
$first_feature_2 "Great Success Rate";
$first_feature_3 "100% Natural Ingredients";
$first_feature_4 "Good Customer Service";
$second_link "http://www.pro.com/index.htm?2941";
$second_link_description "Pro Â® - The No. 2 Herbal Hair Loss Product";
$second_image "<img src='style/images/procerin.jpg' alt='banner ad' title='Banner Ad' />";
$second_review "The herbal hair loss product that we would recommend as the second best is Proc Â® <a href='http://www.pro.com/index.htm?2941'>(http://www.proc.com/)</a>. It is also a 100% natural product and is therefore completely safe to use. It is extremely easy to use and is second only to Provillus™ in effectiveness as far as male DHT hair loss is concerned. However, one drawback of Procerin Â® is that it is currently available only for men. Unlike Provillus™, there is no women's version of this product. ";
$third_link "http://www.xUsd.whichproductreviews.com";
$third_link_description "Scalp Med™ - The No. 3 Herbal Hair Loss Product";
$third_review "Another good choice for treating hair loss is Scalp Med™ (http://www.XXXXXY.com/). However, remember that it is not as effective as Provillus™ or Procerin Â®. One good thing about Scalp Med™ is that it is available both for men and women. ";
?>
Thanks,

Reply With Quote
09-05-2009, 05:00 AM
#2
FWebDe is offline FWebDe
FWebDe's Avatar
Status: Junior Member
Join date: Jul 2009
Location: Vancouver, Canada
Expertise: Programming
Software: Firefox, Vim, Komodo Edit
 
Posts: 69
iTrader: 0 / 0%
 

FWebDe is on a distinguished road

Send a message via MSN to FWebDe

  Old

I'm not 100% sure, but I think it could have something to do with either single or double quotes being mixed. I'm not sure, though.

Reply With Quote
09-05-2009, 08:09 AM
#3
techman92 is offline techman92
techman92's Avatar
Status: I'm new around here
Join date: Aug 2009
Location: Wenatchee WA, USA
Expertise:
Software:
 
Posts: 18
iTrader: 0 / 0%
 

techman92 is on a distinguished road

  Old

I'm having trouble recreating the error. what version of php are you using, im using 5.2.5. i think it may have to do with th % in $first_feature_3, try escaping it.

Reply With Quote
09-05-2009, 05:29 PM
#4
FWebDe is offline FWebDe
FWebDe's Avatar
Status: Junior Member
Join date: Jul 2009
Location: Vancouver, Canada
Expertise: Programming
Software: Firefox, Vim, Komodo Edit
 
Posts: 69
iTrader: 0 / 0%
 

FWebDe is on a distinguished road

Send a message via MSN to FWebDe

  Old

Originally Posted by techman92 View Post
I'm having trouble recreating the error. what version of php are you using, im using 5.2.5. i think it may have to do with th % in $first_feature_3, try escaping it.
That actually sounds more likely to be the problem than what I said.

Reply With Quote
Reply    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed