You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 's Stone','1','J. K. Rowling','J. K. Rowling','J. K. Rowling','J. K. Rowling','J.' at line 2
CODE:
mysqli_query($con,"insert into book(book_title,category_id,author,author_2,author_3,author_4,author_5,book_copies,book_pub,publisher_name,isbn,copyright_year,status,book_barcode,book_image,date_added,remarks)
VALUES('$book_title','$category_id','$author','$author_2','$author_3','$author_4','$author_5','$book_copies','$book_pub','$publisher_name','$isbn','$copyright_year','$status','$gen','$book_image',NOW(),'$remark')")or die(mysqli_error($con));