pixeltrace Posted April 23, 2007 Share Posted April 23, 2007 guys, how do i implode this correctly? <a href="<?php echo $link;?>"> <?php echo $row->title;?></a> the output that i want to happen here is like this: | link1 | lin2 | link3 |.... hope you could assist me on this. thanks! Quote Link to comment https://forums.phpfreaks.com/topic/48246-help-on-implode/ Share on other sites More sharing options...
btherl Posted April 23, 2007 Share Posted April 23, 2007 Can you just add | to the html? If that's not what you want, could you explain in more detail please? In particular what does "correctly" mean for your situation? Quote Link to comment https://forums.phpfreaks.com/topic/48246-help-on-implode/#findComment-235844 Share on other sites More sharing options...
pixeltrace Posted April 23, 2007 Author Share Posted April 23, 2007 hi, this is the current codes that i have for my implode | <? $string = "<a href='echo $link;'>echo $row->title;</a>"; implode ('','$string'); ?> <?php but its not working. the output that i wanted is like this: | link1 | link2 | link3 |.... hope you could help me fix it. thanks! Quote Link to comment https://forums.phpfreaks.com/topic/48246-help-on-implode/#findComment-235850 Share on other sites More sharing options...
btherl Posted April 23, 2007 Share Posted April 23, 2007 What output does your current code give? And how come there is no for loop or while loop? Quote Link to comment https://forums.phpfreaks.com/topic/48246-help-on-implode/#findComment-235852 Share on other sites More sharing options...
pixeltrace Posted April 23, 2007 Author Share Posted April 23, 2007 hi, the while loop is already in my code this is the only part that i am having problems the output that i wanted should look like this: | link 1 | link2 | link3 | ....... hope you could help me on this. thanks! Quote Link to comment https://forums.phpfreaks.com/topic/48246-help-on-implode/#findComment-235855 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.