0
I have the following query that is not working in PHP, because I run in SQL does not present any problem.
sql= "INSERT INTO books (ISBN, Authorsname, Title, edition, year, publisher, 
category, quantityinstock, price) VALUES(".$ISBN.",'".$Authorsname."', 
'".$Title."', ".$edition.", ".$year.", '".$publisher."','".$category."', 
".$quantityinstock.",".$price.")"
of the one
echo $sql;and to see what the form is bringing and tests the sql in the database, also saw that it is missing simple quotes in$edition– Max Rogério
I thought strings would have to be between '' and "" and integers just between ""
– Diana Madeira
Or do so :
$sql = "INSERT blabla (colunas) VALUES ('{$variavel1}', '{$variavel2}', '{$variavel3}' )"– Max Rogério
Thanks Max, you’ve given :)
– Diana Madeira