Skip to content

Commit c6df5df

Browse files
displaying the current number of books in edit mode
1 parent de5461a commit c6df5df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addBooks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
include('config.php');
7272
if(isset($_GET['book_id'])){
7373
$book_id=$_GET['book_id'];
74-
$query1 = "select * from book RIGHT JOIN book_authors ON book.book_id = book_authors.book_id WHERE book.book_id=$book_id";
74+
$query1 = "select * from book RIGHT JOIN book_authors ON book.book_id = book_authors.book_id RIGHT JOIN book_copies ON book.book_id = book_copies.book_id WHERE book.book_id=$book_id";
7575
$get=mysql_query($query1);
7676
$edit=mysql_fetch_array($get);
7777

0 commit comments

Comments
 (0)