So i'm trying to make a website without having any errors, however i keep getting this error:
line 31 column 107 - Error: Bad value display.php? url=A GUIDE TO THE PROJECT MANAGEMENT BODY OF KNOWLEDGE for attribute href on element a: Illegal character in query: not a URL code point.
And this is the part of the code that it is highlighting that is giving the error:
</tr><tr><td><a href='display.php? click=A GUIDE TO THE PROJECT MANAGEMENT BODY OF KNOWLEDGE'>
The '>' the symbol on the end is being highlighted, and it is repeating this for every row.
This is the line of the source code that is saying that is causing the error:
$book = $row['bookTitle'];
echo "<td><a href='display.php? url=".$book."'>\n" .$book."</a></td>";
Any ideas of how to stop this? Any help is appreciated :)
echo '<td><a href="display.php?url='.$book.'">'.$book.'</a></td>';