I have this text saved in this variable:
$variable: Tuberia de acero al carbono Ø4" sch 40 ;
$idDetalle = 1;
What I want is to insert this in a column of a MYSQL table but it does not respect the quotes ("") that I put.
$cadena_insertar .= '( " ' . $idDetalle . ' "," ' . $variable. ' ")';
I want MYSQL to receive it this way:
insert into detalle (idDetalle,variable) values (1,Tuberia de acero al carbono Ø4" sch 40)
But MYSQL receives it as if it had sent 3 data since the double quote ("") that is between Ø4 and sch divides it:
insert into detalle (idDetalle,variable) values (1 , Tuberia de acero al
carbono Ø4" , sch 40)
How could I put quotation marks so that variable is not split?