For my project I created a search engine to search some books from the database. I also made a bookpage where you can find the whole information of the book and were you can react. But now I'm having trouble with linking the two with each other. In my code you can see the code that I am using to show the information in the search page but the title has to be a LINK to his specified bookpage. How can I fix it? Now I can only see the specified bookpage with f.e. book.php?bid=1 (book id = 1).
if ($numrows > 0) {
while ($row = mysql_fetch_assoc($query)) {
$id = $row['book_id'];
$title = $row['book_title'];
$author = $row['book_author'];
$description = $row['book_description'];
$keywords = $row['book_keywords'];
$cover = $row['book_cover'];
$year = $row['book_year'];
$feedback_search = "Results found for \"<b>$k</b>\"";
$feedback_search = "<h1>$cover $title <span>($year)</span></h1><h2><h2><b>Author:</b> $author</h1> <br/> <p>$description</p></h2><hr /> ";
echo $feedback_search;
}
}
else {
$feedback_search = "<h1>No results found for \"<b>$k</b>\"</h1>";
echo $feedback_search;
}
// disconnect db
mysql_close();