[PHP-DB] Automatic Addslashes From: Enrico Comini (algobit <email protected>)
Date: 11/24/00

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?

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>