Solved

PHP Multiple Pipe Special Character Issue

Posted on 2008-06-10
1
354 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…
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…

636 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