When I want to insert information into my database, it does not run:
$sql_in = "INSERT INTO solicitudes(codsol, nro, fechacrea, rutus, banco, tipocuenta, nrocuenta, actividad, lugar, fechaact, proveedor, rutprov, factura, rex, listado, ordencompra, fechacompro, nrocompro, fechaconta, nroconta, fechateso, nroteso, cheque, transfer, estado, codpres, cospago) VALUES ('$codsol_new','$Nsol_new','NOW()','18128661k',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL)";
if (isset($_POST['enviar_sol'])) {
$result_in = $Con_BD->query($sql_in);
That is the code of the insert query. I've been with this error for a while, where is the problem? What can I do to solve it?