Automatic Addslashes

From: Date: Fri, 24 Nov 2000 12:31:00 +0000
Subject: Automatic Addslashes
Groups: php.db 
Request: Send a blank email to php-db+get-4717@lists.php.net to get a copy of this message
I use POstgresql database I do copy tmp from '/home/algobit/product.txt tmp ia a table with one record (line varchar(255)) in product.txt I have many line as: 2;"100";"Parmigiano Reggiano";"Parmigiano Reggiano stagionato 2 anni";4;"parmigiano4.jpg";2;"Fette 1 Kg";0.18;1;1.00;"true" Then with "select * from tmp" the result is exactly like in the original file 2;"100";"Parmigiano Reggiano";"Parmigiano Reggiano stagionato 2 anni";4;"parmigiano4.jpg";2;"Fette 1 Kg";0.18;1;1.00;"true" But when i fetch in a variable a rercords : $row = pg_fetch_array($result, 1); $line = $row["line"]; echo $linea I HAVE: 2;\"100\";\"Parmigiano Reggiano\";\"Parmigiano Reggiano stagionato 2 anni\";4;\"parmigiano4.jpg\";2;\"Fette 1 Kg\";0.18;1;1.00;\"true\" the question is : The SLASH are effectively in the record or is added by PHP?

« previous php.db (#4717) next »