1
include "config_db.php";
$sql = "INSERT INTO tb_produto (NOME_PROD,DESC_PROD,VALOR_PROD,VL_COMP_PROD,STATUS_PROD,COD_CAT,TAM_PROD,COR_PROD,COD_BARRA_PROD,ID_FORN,MAT_FUNC, QTD_PROD,FT_PRODUTO)VALUES('$nome',$desc,$val,$vld,'$status',$cat,'$tam','$cor',$cbr,$forn,$func,$qtd,'$ft')";
$sel = mysqli_query($con,$sql) or die (mysqli_error($con)); 
$caminho_imagem = "prod/ft/".$ft;
if(move_uploaded_file($ftmp, $caminho_imagem)){
    echo"
    <html>
    <style>
    @font-face
    {
        font-family:horatiodbol;
        src: url('horatiodbol.ttf') format('truetype');
    }
    </style>
    <body>
    <font size='+3' face='horatiodbol' color='#FFFFFF'>Produto Cadastrado</font>
    <br>
    <a href='prod.php' color='#FFFFFF' style='font-family:horatiodbol; text-decoration:none;' >Voltar</a>";
}
This code shows the error quoted in the title, how to solve?

Some of the variables are coming with single quotes?
– Sam
$sql = "INSERT INTO tb_produto (NOME_PROD,DESC_PROD,VALOR_PROD,VL_COMP_PROD,STATUS_PROD,COD_CAT,TAM_PROD,COR_PROD,COD_BARRA_PROD,ID_FORN,MAT_FUNC, QTD_PROD,FT_PRODUTO)VALUES($nome,$desc,$val,$vld,$status,$cat,$tam,$cor,$cbr,$forn,$func,$qtd,$ft)";
– Thiago Loureiro
without the simple quotes.. test there..
– Thiago Loureiro
I had already tried but without success this method, but I’ve solved the problem, Thank you
– Rodrigo