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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:55:39+00:00 2026-05-14T08:55:39+00:00

The big problem : mysql does not stores the information i told him to

  • 0

The big problem : mysql does not stores the information i told him to via PHP

Example (this req is an echo just before the query) :

INSERT INTO serveur (GSP_nom , IPserv, port, tickrate, membre, nomPays, finContrat, type, jeux, slot, ipClient, email) 
VALUES ( 'ckras', '88.191.88.57', '37060', '100' , '', 'Allemagne','20110519', '2', '4','99' ,'82.220.201.183','foo@foo.com');

But on the MySQL i have :

403     ckras   88.191.88.57    32767   100         Allemagne   20110519    1   2010-04-25 00:51:47     2   4   99      82.220.201.183  foo@foo.com

port : 37060 (right value) //// 32767 (MySQL’s drug?)

Any help would be appreciated, i’m worse than stuck and i’m **** off

PS: *There is no trigger on the mysql as far as i know / there is no controll on the port which means that nowhere i modify the “port” value

and this script works for 80% of the time ( it seems that as soon as the users enters a port >= 30000 it causes that bug), an user first reported to me this error today and the script was running since 3 months*

Thanks

  • 1 1 Answer
  • 2 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-05-14T08:55:40+00:00Added an answer on May 14, 2026 at 8:55 am

    You are probably using the smallint data type for the port attribute. The maximum value of this data type is 32767.

    In fact, I have replicated your problem:

    CREATE TABLE a(a smallint);
    Query OK, 0 rows affected (0.09 sec)
    
    INSERT INTO a VALUES (37060);
    Query OK, 1 row affected, 1 warning (0.02 sec)
    
    SELECT * FROM a;
    +-------+
    | a     |
    +-------+
    | 32767 |
    +-------+
    1 row in set (0.00 sec)
    

    You would simply have to use a larger data type, such as mediumint or int.

    Further reading:

    • MySQL 5.1 Reference Manual: Numeric Types
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This mysql command line return me: count(*) 19 . It's a big problem for
I've a big problem: When someone selects multiple products, for example he selects 3
Hi I have one big problem with one MYSQL search. My database TABLE looks
I have a big problem with my server mysql. All worked fine but since
I am having a big problem trying to connect to mysql. When I run:
This problem is very simple i think... I dont have experience with big scalable
This is a very difficult problem to describe. The big picture: An ajaxed dialog
I got a big Facebook-application coming up. It is programmed in php using mysql
I'm facing a big problem here with PHP and I need your help. I'm
I really seem to have a big problem here. I'm using MySQL to store

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.