I want display the records by while cicle. The result must be inside the bootstrap html code. In this moment, when execute the page, display this error:
Parse error: syntax error, unexpected '\' (T_NS_SEPARATOR) in ...
This is my php code:
include "connect.php";
if (!$query = $dbconn->query("
SELECT
*
FROM
books
"))
{
echo "Error: " . $dbconn->error . ".";
exit();
}else{
if($query->num_rows > 0) {
while($row = $query->fetch_array(MYSQLI_ASSOC))
{
"
<li class=\"inline\">
<span class=\"badge pull-right\">".$row['tot_books']."</span>";
"
<a href=\"booksPage.php?k=".$row['books_sequence']\">"; echo $row['book_description']."<a/></li>";
}
//
$query->close();
}
}
$dbconn->close();
How to fix it?