The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Is there a php code that for every time a user comes it goes up 1?
Well I'm trying to make a link page where my users can add a link it does every thing right except when you save becausethe id is already on use. So can some one tell me a php code that for evry time the user saves it goes up 1.
|
#2
|
|||
|
|||
I think that if you define a column as "auto_increment" this happens automatically. I'm not sure though...
|
#3
|
||||
|
||||
if you store it in the db, yep then just make the id field an autoincrementfield
|
#4
|
|||
|
|||
thank you
when I do this it comes with the error: #1063 - Incorrect column specifier for column 'id' |
#5
|
|||
|
|||
CREATE TABLE tablename (id int(6) NOT NULL auto_increment,
otherstuff varchar(15) NOT NULL, youneed varchar(15) NOT NULL, |
#6
|
|||
|
|||
thank you.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|