I have the following query that is not working in PHP, because if you run Sql it does not present any problems.
sql= "INSERT INTO books (ISBN, Authorsname, Title, edition, year, publisher,
category, quantityinstock, price) VALUES(".$ISBN.",'".$Authorsname."',
'".$Title."', ".$edition.", ".$year.", '".$publisher."','".$category."',
".$quantityinstock.",".$price.")"