K
K
Kirill2016-01-19 22:56:00
PHP
Kirill, 2016-01-19 22:56:00

How to make conditions in a row?

Hello! I have a number of conditions

if (!empty ($row[group2])) {

    echo "<p> <a href=index.php>Редактировать '" . $row['group2'] . "'</a></p>";
}	
    if (!empty ($row[group3])) {

    echo "<p> <a href=#>Редактировать '" . $row['group3'] . "'</a></p>";
  }
  
      if (!empty ($row[group4])) {

    echo "<p> <a href=#>Редактировать '" . $row['group4'] . "'</a></p>";
  }
  
      if (!empty ($row[group5])) {

    echo "<p> <a href=#>Редактировать '" . $row['group5'] . "'</a></p>";
  }
  
}

they are displayed perfectly, but each condition is in a new row, but how to make them be in a row? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aligatro, 2016-01-19
@quant78

Remove "p" tag?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question