Got the extra block?

Hello! Deduce from DB data:
<?php
 mysql_connect("localhost", "root", "pass") or die (mysql_error ());
 mysql_select_db("test") or die(mysql_error());
 mysql_query('SET NAMES utf8');
 $strSQL = "SELECT * FROM apps";
 $rs = mysql_query($strSQL);
 while($row = mysql_fetch_array($rs)) {
 echo '<a href="acc.php?id=';
 echo " . $row['id'] . '"class="acc-num"-->';
 echo 'OA' . $row['id'] . ";
 } 
mysql_close();
 ?>


On the output you get:
prntscr.com/e1xup6
prntscr.com/e1xuy4

Got the extra block?
August 19th 19 at 23:05
3 answers
August 19th 19 at 23:07
Solution
And who will be for you /a close?
August 19th 19 at 23:09
in database empty string
August 19th 19 at 23:11
$strSQL = "SELECT id FROM apps";
$rs = mysql_query($strSQL);
while($row = mysql_fetch_array($rs)) {
 echo '<a href="acc.php?id='. $row['id'] .'" class="acc-num">OA'. $row['id'] .'</a>';
}

Find more questions by tags PHP