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

    Join Date
    Jul 2009
    Posts
    205
    Rep Power
    28

    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
    Posts
    88
    Rep Power
    10
    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
    28
    Thanks for the reply,

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

IMN logo majestic logo threadwatch logo seochat tools logo