printing to "the same line"

I have the following code, but would like to have the two href's show up on the same line. How?

if ($ret == 'true') {
      print("<br><br><center><b><a href=\"artiklar_list.php3\">Tillbaka till artikellistan</a>");
      }
if ($dis == 'true'){
      if ($discus) {
      echo "<center><b><br><a href=\"http://localhost/cgi-bin/discus/show.cgi?$discus\">Kommentera denna artikel</a></b></center><br><br>";
}
}
LVL 12
j2Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
kawinConnect With a Mentor Commented:
You can move <br><br> and <center> out off if statement, look like

==============================
if ($ret == 'true' || $dis == 'true')
{
    print ("<br><br><center>");
}
if ($ret == 'true') {
     print("<b><a href=\"artiklar_list.php3\">Tillbaka till artikellistan</a>");
}
if ($dis == 'true'){
    if ($discus) {
         echo "<b><a href=\"http://localhost/cgi-bin/discus/show.cgi?$discus\">Kommentera denna artikel</a></b>";
     }
}
if ($ret == 'true' || $dis == 'true')
{
    print ("</center><br><br>");
}
==============================
0
 
j2Author Commented:
I actually figured it out just moments before i got the notification about your answer. And since my code ended up almost identical to yours, you certainly still deserve the points.

Thanks.
0
All Courses

From novice to tech pro — start learning today.