SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Aug 2009
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    echo content error

    Hi,

    This line:

    PHP Code:
    $body->set('delivery_cost_num_format', echo $config['standard']); 
    Reads this error:

    Parse error: syntax error, unexpected T_ECHO in /home/www/checkout/index.php on line 81

    I cannot see what is wrong with the line?

    Help appreciated.

    Cheers,

    Paul

  2. #2
    SitePoint Wizard wonshikee's Avatar
    Join Date
    Jan 2007
    Posts
    1,223
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    $body->set('delivery_cost_num_format', $config['standard']);

  3. #3
    SitePoint Evangelist smftre's Avatar
    Join Date
    Dec 2008
    Location
    London
    Posts
    436
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should not echo something within a parameter if you are already in php. Unexpected T_ECHO, remove "echo"
    Statvoo.com The Website Traffic Monitor
    The best way to monitor traffic to your sites for free!


    Web Development London UK We make web 3.0 applications


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •