Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8555491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:08:03+00:00 2026-06-11T15:08:03+00:00

I have users uploading data from an excel file to my server, parsed, and

  • 0

I have users uploading data from an excel file to my server, parsed, and then displayed on my website. I have an issue where if the user has a single apostrophe in the excel file it will cut off everything after it. This is because both sql(used to grab the excel data) and the asp classic code(used to display dynamic html data) are interpreting this as a field delimiter. I used php to process the excel file and replace the apostrophe with whatever character I desire. I attempted to use escape versions of apostrophe to no avail “\'”, “””,”\’\'”, “'”. This is because even the though they fix the issue with the sql grabbing the data properly, the ASP code continues to cut off characters before it can be displayed. I ended up using “**” as the replacement for apostrophe to get past the sql, but must convert it back to an apostrophe before it is outputted for the user by the ASP:

formString= formString & "<tr>" & _"<td align='left'><input name='FirstName' type='text' size='9' maxlength='12' value='"&replace(someUglyString,"**","&#39;")&"'></td>"

Has anyone come across this? any ideas?

php as requested:

for ($i = 1; $i <= $objPHPExcel->getActiveSheet()->getHighestRow(); $i++) {
$cell = $objPHPExcel->getActiveSheet()->getCellByColumnAndRow('A', $i);
$cell->setValue(str_replace("'","**",$cell->getValue()));
$objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow('A',$i,$cell->getValue());

}

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:08:04+00:00Added an answer on June 11, 2026 at 3:08 pm

    &apos did it. I’m really surprised that I couldn’t find this anywhere.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a set of data which needs to be imported from a excel
I have a web application that has a requirement to take data from an
I have some data to export from DB and save as CSV file, and
I have data from an Excel spreadsheet that I want to import into a
I have an file uploading site, it has an option of uploading through urls,
Basically, I'm uploading an excel file and parsing the information then displaying what was
I have a website that is used for uploading data to a restricted database.
i have users table and i have posts table i want select from users
In my web application I will have users, each user will have albums, and
I've been trying to Base64 encode image data from the user (in this case

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.