<?php include ("./inc/header.inc.php");$userid="";$dblinks = DB::query('SELECT url, title FROM links WHERE user_id!=:userid ORDER BY id DESC', array(':userid'=>$userid));$links = "";$links_t = "";foreach ($dblinks as $u) { $links .= $u['url']; //$links .= $} foreach ($dblinks as $t) { $links_t .= $t['title']."<hr /></br />";}?><div class="links"><?php echo $links;echo $links_t;?> </div>
The output is coming as all the urls one by one and the title one by one. I want url and title to be together then a <hr> then next url and title and so on. any help
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
Open in new window
If you can what is the html output you are trying to achieve, it will be better to understand and construct that.