Date: 11/24/00
- Next message: David Vázquez: "RE: [PHP-DB] Sql Server stored procedure strikes back"
- Previous message: Sanders, Nicholas: "RE: [PHP-DB] Sql Server stored procedure strikes back"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: David Vázquez: "RE: [PHP-DB] Sql Server stored procedure strikes back"
- Previous message: Sanders, Nicholas: "RE: [PHP-DB] Sql Server stored procedure strikes back"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

