PHP assistance

Discussion in 'Coding Help' started by robototitico, Mar 7, 2011.

  1. robototitico

    robototitico New Member

    I want to put a facebook share link to an email.

    This calls the permalink for the ad - get_permalink($post->ID)
    This is the facebook share link -
    Code:
    http://www.facebook.com/sharer.php?u=http://www.example.com/category/page 
    How do I combine the two in the code below? The relevant place is marked in red, with my effort which doesnt work.

    Thanks

     
  2. Tom

    Tom New Member

    Not sure if it will work but try the follwing instead. Basically just move the function call outside of the quotes.
    Code:
    $message .= "[B][COLOR=red]http://www.facebook.com/sharer.php?u=".get_permalink($post->ID)[/COLOR][/B]."\r\n\r\n\r\n\r\n";
     

Share This Page