Try this:
PHP Code: 
<?php if ( is_single() ) { ?>
    <div class="navigation" style="border-top:0;">
        <div class="alignleft"><?php previous_post_link('%link','<img src="previouspost.png" />'); ?></div>
        <div class="alignright"><?php next_post_link('%link','<img src="nextpost.png" />'); ?></div>
        <div style="clear:both;"></div>
    </div>
<?php } else { ?>
    <?php if ( function_exists('wp_pagenavi') ) { ?>
        <?php wp_pagenavi(); ?>
    <?php } else { ?>
        <div class="navigation">
            <?php posts_nav_link('''<img src="previouspost.png" />''<img src="nextpost.png" />'); ?>
        </div>
    <?php ?>
<?php 
?>
I am not sure which cms is that! It may work assuming previous_post_link & next_post_link are functions which automatically binds next page link
soft2050 Reviewed by soft2050 on . [Req] How to Add Image instead of Text in PHP Hello Friend I just need your help to add image in my php file instead of text : Here is my file's php code <?php if ( is_single() ) { ?> <div class="navigation" style="border-top:0;"> <div class="alignleft"><?php previous_post_link('%link','&laquo; Previous Post'); ?></div> <div class="alignright"><?php next_post_link('%link','Next Post &raquo;'); ?></div> <div style="clear:both;"></div> </div> <?php } else { ?> <?php if ( Rating: 5