|
|
|
#1 (permalink) | ||||||||||||
|
Audiophile
|
Whenever i try to add a column through php to my sql server.
Nothing I tried worked so can i have someones input on how to do this. All i need is to execute some mysql query: Code:
ALTER TABLE tablename auto_increment = 1;
Last edited by F3t1sh : 02-04-08 at 08:22 PM. |
||||||||||||
|
|
|
|
#2 (permalink) | ||||||||||||
|
Hebrew Hammer
![]() |
Shouldn't it read auto-increment as 1? You cannot incrementing anything by 0.
![]()
__________________
| PC Audio Setup: JRiver Media Center ASIO(FLAC) > E-MU 0404 USB > LD MKIII > Grado SR225 / HD555 Fold for 37726 Folding Team "Just Be Cause" Honorary Member
|
||||||||||||
|
|
|
|
#3 (permalink) | ||||||||||||
|
Audiophile
|
:P fixed but none the less it's not doing anything, say I try to alter a table to insert a column, it won't insert it.
|
||||||||||||
|
|
|
|
#4 (permalink) | ||||||||||||
|
Hebrew Hammer
![]() |
How is your table defined?
__________________
| PC Audio Setup: JRiver Media Center ASIO(FLAC) > E-MU 0404 USB > LD MKIII > Grado SR225 / HD555 Fold for 37726 Folding Team "Just Be Cause" Honorary Member
|
||||||||||||
|
|
|
|
#5 (permalink) | |||||||||||||
|
PC Gamer
|
That just automatically gives the row an id so you dont have to put it in
__________________
OurFreeLife - Learn how to get the latest gadgets for free TFD are recruiting for FarCry 2
|
|||||||||||||
|
|
|
|
|
#6 (permalink) | ||||||||||||
|
Audiophile
|
Code:
mysql_query("ALTER TABLE room ADD ID INT");
|
||||||||||||
|
|
|
|
#7 (permalink) | ||||||||||||
|
Audiophile
|
WOW im an idiot, sorry, it works 100%
|
||||||||||||
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|