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

  • SEARCH
  • Home
  • 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 8916287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:12:08+00:00 2026-06-15T05:12:08+00:00

I’m having this odd problem where I can store an email test@gmail.com into my

  • 0

I’m having this odd problem where I can store an email “test@gmail.com” into my DB that is either a varchar() or text() but I cannot select the row based off of the email. If I select the column via another identifier (say, a primary key called ’email_id’) then I can display the email with the period in it. I can also select any row with email column with a varchar / text that does not have a period in it, such as “test@gmailcom”.

I’ve replicated this on a test DB as well as my stage DB. This is also not a code issue because I’ve tested and replicated this when inserting directly into the DB from the query panel.

I’ve tried googling it but to no avail as well.

EDIT:

Am I using varchar() and/or text() correctly? Should it be something else? I’ve seen a few SO posts (cannot find them) stating to use VarChar.

For the record, I’m using mysql WorkBench for inserting / selecting, if that makes any difference.

EDIT 2:

Here are two records:

client_id (PK, AI, INT, UNSIGNED), email (varchar(500), not null) 

in the table of client_login.

client_id = 1, email = 'test@gmail.com' 

and

client_id = 2, email = 'test@gmailcom'

The following select

select * from client_login where email='test@gmail.com'

returns 0 rows

select * from client_login where email='test@gmailcom'

returns 1 row

EDIT 3:

I can also do

select * from client_login where client_id=1

and it will show me the row where email = 'test@gmail.com', which is odd because it’s as if the period is in the row but it’s not actually a period…

  • 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-15T05:12:10+00:00Added an answer on June 15, 2026 at 5:12 am

    Frankly, I don’t believe the problem is as stated.

    Here’s your “problem” running in SQLFiddle, showing that it works just fine.

    I think the data in the email column is not what you think it is, especially the “dot” character.
    Try updating it with hand-typed data.


    To assist debugging this problem, try outputting the column value as hex using the HEX() function:

    select HEX(email)
    

    and carefully inspect the output.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I am currently running into a problem where an element is coming back from
I have a French site that I want to parse, but am running into
I know there's a lot of other questions out there that deal with this
Does anyone know how can I replace this 2 symbol below from the string
I'm not entirely sure how I managed to jack this up. http://pretty-senshi.com If you
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti

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.