xlxprophetxlx Posted January 28, 2008 Share Posted January 28, 2008 I have this code below which is almost like a pagination setup but is pulling links to specific content. If there is link 1 2 3 4 it would pull in a symbol of my choice like so: $spacer_end 1 $spacer_start 2 $spacer_start 3 $spacer_start 4 $spacer_end. I was wondering if there is anyway I can display the array into a list: <ul><li></li></ul> format instead of imploding the array into nothing. if ( $spacer_end ) { echo '<span class="'. $menuclass .'"> '. $spacer_end .' </span>'; } if ( $spacer_start ) { $html = '<span class="spacer"> '. $spacer_start .' </span>'; echo implode( $html, $links ); } else { echo implode( '', $links ); } if ( $spacer_end ) { echo '<span class="'. $menuclass .'"> '. $spacer_end .' </span>'; } Any incite would be great. Thanks, -Mike Quote Link to comment https://forums.phpfreaks.com/topic/88276-php-mysql-links/ Share on other sites More sharing options...
amites Posted January 28, 2008 Share Posted January 28, 2008 might just be my mushy blain though I'd say more information about your query is needed Quote Link to comment https://forums.phpfreaks.com/topic/88276-php-mysql-links/#findComment-451721 Share on other sites More sharing options...
fenway Posted January 29, 2008 Share Posted January 29, 2008 Actually, I see no MySQL code at all... Quote Link to comment https://forums.phpfreaks.com/topic/88276-php-mysql-links/#findComment-452389 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.