Hi all,
I've a problem with my insert sql..I didn'y know why.
here is my insert sql
$goodsDesc = $_POST['goodsDesc'];
$k8goodsQty = $_POST['k8goodsQty'];
$valuePerUnit = $_POST['valuePerUnit'];
$sql_k8goodsIn = "INSERT INTO k8_goodsin
(k8regID,goodsDesc,k8goodsQty,valuePerUnit)
VALUES (
'".$k8regID."',
'".addslashes(strtoupper($goodsDesc[$y]))."',
'".$k8goodsQty[$y]."',
'".$valuePerUnit[$y]."')";
for goodsDesc the input is like this
goodsDesc = 2-1/2" suction pump
then in the database it reads like this
goodsDesc = 2-1/2\
why is it happen like that, I already use addslashes
please help me.