Solved

PHP Multiple Pipe Special Character Issue

Posted on 2008-06-10
1
351 Views
Last Modified: 2013-11-13
Hi I am having trouble with the special character pipe (vertical bar or | ).

Currently I have a program that can takes a text file and parses out the data from CSV format into a Microsoft SQL database. When submitting the file, it has no issues except when multiple pipes ( ||| ) are being used  back to back in one of the text fields. This text field needs to use these pipes as it is being exported out of another program.

Example:
Text File states: 202000|||
Database states: 202000+|

Or

Text File States: 202000||
Database StateS: 202000+

Or with one pipe ( | ) it works...

Text File States: 202000|
Database States: 202000|

I am unsure where to start with this, but the pipes need to be correctly inserted in the database and when I use a select statement, I will need to be able to pull multiple pipes out of the database as well.....
0
Comment
Question by:robertarmbrister
1 Comment
 

Accepted Solution

by:
robertarmbrister earned 0 total points
ID: 21759447
Decided to change to '~' instead of pipes and does not look to have issues.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question