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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:43:12+00:00 2026-06-01T06:43:12+00:00

I am having this really annoying problem on a php-site I am programming and

  • 0

I am having this really annoying problem on a php-site I am programming and hoping to tap into the well of knowledge that is stackoverflow to help overcome it.

The logic of the login verification is like this.

  1. You register and a mail is sendt to you. The mail contains an url with your username and an id that will be matched up to an id stored under your user name in a table. (Via $_GET)

  2. If the function finds 1 row with matching id and user name it will change verified to “yes” for that user.

This all works fine, until you use names with æ ø or å in them. Like Jørgen. The mail verification function was altered to accomodate for this, turning the url into something like

http://www.myphppage.com/index.php?login=j%F8rgen&id=62185505683314306498

I’ve made the php-function that checks sql print login and it prints correctly as Jørgen on the html-page. In the program mysql workbench, the name also displays correctly in the table.

If i try to select * from database.user_reg WHERE login='{$login}’ however, it doesn’t match and mysql_num_rows returns 0. If i try the same with just the id though, it matches and returns 1 like it should. I think the fault must lie in the query somewhere.

My index-page uses charset=iso-8859-1
and my Database uses Latin-1_general ci

Help is appreciated

-Johann

  • 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-01T06:43:13+00:00Added an answer on June 1, 2026 at 6:43 am

    Use base64_encode() function.

    $url='www.myphppage.com/index.php?ver='.base64_encode($login.'|'.$id);
    

    and then …

    $data=explode('|',base64_decode($_GET['ver']));
    $login=$data[0];
    $id=$data[1];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been having this really annoying thing happen the past few days, that has
This is a really weird problem that I have been having. When I download
Ok this is a really annoying bug that I have been having issues with
I'm really new to programming, so I'm having trouble explaining this -- please forgive.
I'm really having a problem finding out how to fix this. I cannot seem
I'm having a really difficult time debugging this problem. Whenever I try to establish
Good morning, I'm having a really annoying issue with Highcharts, such that the x-axis
I am having this question that really puzzles me, here it goes: If I
This is somewhat annoying. It appears that webkit (through chrome 13 canary) is having
is there any ways to accomplish this? it is really annoying having to restart

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.