answersLogoWhite

0

Two Methods can be used they are below:

Auto Increment1. Add a field as the first field (Under your fields, and Print View should be buttons and a Radio should say 'At Beginning of Table', check it then hit go.

1b. If you are in the add table screen use the top row for this.

2. Call it id or whatever you want provided you'll know it's the primary key

3. The Type (in the dropdown) is either int or bigint (if you want a lot of rows choose BigInt with 255 length)

3b. The Length is how many number's (in the case of Integers) e.g. 6 would mean 999999 is the maximum and 7 is 9999999)

4. In some version this will be a dropdown in some newer versions it's a tick box however find AUTO_INCREMENT and ensure it is ticked / selected

5. Either finish your table or hit save.

Something's to keep in mind:

1. Only one AUTO_INCREMENT field per table

2. The AUTO_INCREMENT field is the primary key, and in PhpMyAdmin this is often auto added as the Primary key.

Second MethodThis method is more manual and requires adding code when Inserting.

1. Add a field / make this the first field

2. Call it id or something that you'll know is the id

3. Make it an Int or BigInt

4. Read step 3a (of method 1) if you don't understand length with Integers

5. Save / Complete table

A. Then in php perform a MySql count (this method is basic so php isn't the only language this can be done in.

B. Add one to the Integer variable you saved the count in

C. In your insert make the Added count Variable your Insert for ID

Keep in mind way two will come in to issues if your site is used a lot or if the insert is on every page, for example logging people's habits.

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Basic Math

How can i use decimal models to add decimals?

You can use decimal models to add decimals by using the hundedths blocks as used in base-ten blocks and add the following decimals you need to and use the hundredths block to shade in the total.


How many steps are required to convert 449 into a palindrome using the reverse and add method?

To convert the number 449 into a palindrome using the reverse and add method, you would follow these steps: First, reverse 449 to get 944, then add the two numbers together (449 + 944 = 1393). Next, reverse 1393 to get 3931 and add them (1393 + 3931 = 5324). Finally, reverse 5324 to get 4235 and add them (5324 + 4235 = 9559), which is a palindrome. Thus, it takes a total of 3 steps to reach the palindrome 9559.


How do you add a comment in PHP?

< ?php // This is an example of comment in PHP /* This is another example of comment in PHP and we can write comments in multiple lines using this method */ ? >


How do you get the number 13 only using 1234?

Ah, what a happy little challenge! To get the number 13 using only the digits 1, 2, 3, and 4, you can add 1, 2, 3, and 4 together. That would give you 10, then you can add 3 to that to get 13. Just remember, there are no mistakes, only happy accidents in math!


What are the numbers when you add you get -3 when multiplied you get 40?

There are no two real numbers that do. Using complex numbers, these two do: (-3/2 + i√151/2) & (-3/2 - i√151/2) Two numbers that add to -3 and multiply to -40 are -8 & 5 Two numbers that add to 3 and multiply to -40 are 8 & -5 Two complex numbers that add to 3 and multiply to 40 are (3/2 + i√151/2) & (3/2 - i√151/2)

Related Questions

When was PhpMyAdmin created?

PhpMyAdmin was created on 1998-09-09.


How do you use MySQL in phpMyAdmin?

open config.inc.php file located in phpMyAdmin directory, change the settings , and then save the file and run the phpMyAdmin application.


How do you add without using numbers?

It is the same thing as adding without a yahoo id


What can you do with this phpmyadmin info?

phpMyAdmin is an application written in the PHP language that provides a web-based interface for the administration of MySQL databases.


I made a database using xampp at localhost phpmyadmin i made a form in visual basic and i want it to connect to my database do you know how to do it?

no, I don't


Add student by id in c using function?

Can you please rephrase your question and ask again if you want a precise answer.


Is there any people that can help me get fly the co-op in gta 4?

yes add psn id Fly_the_co-op or add psn id Rooivalk_pilot or add psn id leitjie


What is the secret ID for Pokemon Platinum?

The Pokemon Platinum ID code is CPUE-DO74D1B3. I am not sure if the O is a zero or a 0. So try both. sry =( Actually, the code above is the game ID needed to add codes to an Action Replay. the secret ID of your character can only be obtained using the secret ID cheat, and is needed to make your own pokesav codes when creating your team using pokesav.


How do you get files from Notepad to phpMyAdmin?

Assuming you want to copy some SQL you have written into phpMyAdmi in order to run it; you can simply select all of the text and paste it into the "SQL" tab on phpMyAdmin, visible from almost all screens.


How do you fix phpmyadmin in xampp When ever I change the Username or add a password it says an error Unable to connect to mysql Answer ASAP Please?

Have you manually changed the password and username in config.inc.php located in phpmyadmin folder of XAMPP? It is better not to change the username and password of your XAMPP unless you are hosting your site on a server. Simple thing would be a login/register page which closes mysql connection if user is not registered.


How do you make id on Facebook?

You would simply sign up for Facebook using your "real" name. If you want a nickname, then go to your settings and add one.


You want to add mileycyrus ID?

Yes