<li class="list-group-item">Pot na Roblek <span class="badge">2017-08-16</span> </li>
if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { echo '<li class=\"list-group-item\">'.$row["naslov"].'<span class=\"badge\">'.$row["datum"] .'</span></li>'; } } else { echo "0 rezultatov"; }
if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { echo '<tr>'; echo '<td class=\"success\">'.$row["datum"].'</td>'; echo '<td class=\"success\">'; echo '<a href="'.$row['link'].'">'.$row["naslov"].'</a>'; echo '</td>'; echo '</tr>'; } } else { echo "0 rezultatov"; }
You are echoing out <li class=\"list-group-item\">. Take out the backslashes.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)