#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2009
    Posts
    205
    Rep Power
    30

    Just broken something, anyone about?


    Hi,

    Just broken something and need to fix it, im not a php coder is anyone about to help?

    PHP Code:
    add_code'code1''code2' );

    function 
    share_code$atts$content null ) {
       return 
    '
    <div class="unit unit-share">
    <strong>test</strong>
    test.
    <div>
    <span class="st_twitter_hcount" displayText="Tweet"></span>
    </div>
    </div>
    '
    ;} 
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Location
    On planet earth
    Posts
    106
    Rep Power
    11
    This should be the thing that you should do when mixing HTML and php or any other codes (obviously with the relevant syntax)

    PHP Code:
     <?php insert code ?>

    HTML

    <?php  insert code ?>
    e.g.

    PHP Code:

    <?php for (........) {

      
    routine

    ?>


    HTML 

    <?php ?>
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2009
    Posts
    205
    Rep Power
    30
    Thanks for the reply,

    I have fixed the problem now, was being stupid, doh.

IMN logo majestic logo threadwatch logo seochat tools logo