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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:36:01+00:00 2026-06-02T15:36:01+00:00

I have this SQL: INSERT INTO v3_peers (torrent, peer_id, ip, ipv6, port, smoke_ip, uploaded,

  • 0

I have this SQL:

INSERT INTO v3_peers 
                    (torrent, peer_id, ip, ipv6, port, smoke_ip, uploaded, downloaded, up_ofset, down_ofset, remaining, started, last_action, connectable, userid, agent) 
                    VALUES 
                    ('13471', '-UT2200-ĂZŤjśŻl‰şđ^', '69.64.147.243', '2001:0:5ef5:79fd:14e6:7214:2a5f:5811', '58262', '', '0', '0', '0', '0', '0', '1334945327', '1334945327', 'yes', '1', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19')

When it is executed in script it is saved to db, but peer_id is only “-UT2200-” and browser give me dialog to save file with name of sript and content whitch should be returned as php output in plain/text

When I insert this into db by phpmyadmin everything is ok.

peer_id have datatype varchar(255)

Any ideas what is wrong?

  • 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-02T15:36:03+00:00Added an answer on June 2, 2026 at 3:36 pm

    Ok, I found the error. When i am comparing datas inserted in db and actual data from $peer_id=$_GET[peer_id] variable in SQL like:

    WHERE peer_id LIKE '".$peer_id."'
    

    then I got error because peer_id in db is not like peer_id, but when i use

    WHERE peer_id = '".$peer_id."'
    

    it works perfectly. Encoding of column peer_id must be set to utf8-unicode-ci NOT utf8-general-ci!!

    So, there was not error in encoding (missing characters in phpmyadmin as I wrote in question are not realy missing but hidden because of encoding) but error is in other scrip.

    Thanks all for your time.
    I hope this will help someone in future.

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

Sidebar

Related Questions

I have this SQL by a programmer: $sql = INSERT INTO `{$database}`.`table` ( `my_id`,
Recently I have been writing parameterized queries like this: SQL = INSERT INTO myTable
So I have this sql from c# to insert purchase info into a table
can we have sql insert like this? INSERT INTO A_has_B ( A_id , B_id
If I have the following SQL: INSERT INTO sometable (someintcolumn) VALUES ('1') This will
I have this SQL query: insert into messages (message, hash, date_add) values ('message', 'hash',
I have this SQL statement below INSERT into 2011_electricity ( date, energy, daynum) VALUES
now i have this form post script <? if(isset($_POST['baslik'])) { $sql = INSERT INTO
Hi I have this basic mysql code: sql = 'INSERT INTO popularity (PersonNumber, Category,
I have a file with contents something like this: INSERT INTO table VALUES (NULL,'°

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.