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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:47:23+00:00 2026-05-26T08:47:23+00:00

Need your help, strange. I have the same tables based locally and on the

  • 0

Need your help, strange. I have the same tables based locally and on the server – the one on the server doesn’t increment ? The local one does…here’s the SQL statement for the colum. I can only register / input one row when there are no data, then it doesn’t auto increment on next submissions:

-- phpMyAdmin SQL Dump
-- version 3.3.9.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Oct 25, 2011 at 01:31 PM
-- Server version: 5.0.92
-- PHP Version: 5.2.6

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `name`
--

-- --------------------------------------------------------

--
-- Table structure for table `basic`
--

   CREATE TABLE IF NOT EXISTS `basic` (
  `user_id` int(11) NOT NULL auto_increment,
  `username` varchar(255) character set utf8 NOT NULL,
  `email` varchar(255) character set utf8 NOT NULL,
  `email_active` enum('1','0') character set utf8 NOT NULL default '0',
  `password` varchar(128) character set utf8 NOT NULL,
  PRIMARY KEY  (`user_id`),
  UNIQUE KEY `email` (`email`)
  ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

--
-- Dumping data for table `basic`
--

INSERT INTO `basic` (`user_id`, `username`, `email`, `email_active`, `password`) VALUES
(2, 'mrd', 'ddddd.ddddd@gmail.com', '0', '05cb6e7ad0f2a84ee6b1cc097dbf2787');

Why does it work locally ? (I’m using PHP my admin on the server and locally as well )

Thank you…

  • 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-05-26T08:47:23+00:00Added an answer on May 26, 2026 at 8:47 am

    Make sure you set the AUTO_INCREMENT flag:

    CREATE TABLE users
    (
    user_id int NOT NULL AUTO_INCREMENT,
    username varchar(255) NOT NULL,
    email varchar(255) UNIQUE,
    email_active TINYINT(1),
    password varchar(12),
    PRIMARY KEY (user_id)
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need your help. I have tables using PHP while looping and I need
need your help with GROUP BY clause. I have two tables: Managers and Clients
I need your help, For example I have a decimal type variable and I
I've some questions .. and I really need your help. I have an application.
Need your help with my PHP/MYSQL array. I have a php script that selects
need your help. I tried myself but cant solve it. I have a table
I need your help to optimize the query below. Let us assume we have
Need your help on the below. I have a table where I have functions
I need your help in this case: I have: 1 11 111 Cat1 a,b,c
I need your help again. So I have a simple list <ul> <li>First</li> <ul

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.