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 8810109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:02:49+00:00 2026-06-14T03:02:49+00:00

I have a column in a mysql table which has extra whitespaces on the

  • 0

I have a column in a mysql table which has extra whitespaces on the end. Although i already tried to do REPLACE and TRIM within mysql and $output = preg_replace("/\s+/", " ", $input); nothing seems to remove the extra whitespace or whatever it is in the end of the string.

The column is a varchar(255) collation utf8_general_ci. It contains an alphanumeric string which represents a flight number e. g. LH2214. I have another column which also is the same collation and also varchar(255) with the same alphanumeric strings, which doesn’t have the extra whitespace after it.

I only can see the whitespace on my webpage, which has charset utf-8. But what i can’t see is, if it is a tabspace, whitespace, eol, eof or similar, so i don’t know how to filter it out. Does anybody have any ideas how do i get rid of the extra whitespace in the end of the values in my column in mysql?

I already tried a lot of solutions posted to similar questions her on SO, but none worked.

I added an image to show my problem.

extra whitspace visible in the upper line.

The funny thing is, that in the source-code, there is no whitespace visible. So if I save the html, i will not see an whitespace nor an   or similar.

  • 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-14T03:02:50+00:00Added an answer on June 14, 2026 at 3:02 am

    Looks to me (from your screenshot), that you have some additional CSS properties on the rows that have the “additional whitespace”. Take a look at your css properties, perhaps you set a margin, padding, text-indent or some other property that would shift your text/content.

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

Sidebar

Related Questions

I have a server table which has a column named 'SN' in mysql, when
Possible Duplicate: Datetime vs Timestamp? I have a Mysql table, which has a column
I have a table in my mysql database which has a column score and
I have a MySQL database and a table which has a names column as
I have a MySQL table which has about 30 columns. One column has empty
I have added a new column to my table Attributes which already has (id
I have a MySql table which has a timestamp column. The table also has
I have MySQL table called Files which has file_id column and file_type column (and
So I have a mysql table which has a id column (sid) that can
if i have a table which has columns with fixed lenght, Will mySQL count

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.