Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

ID code for entries

Codes here !

Moderators: macek, egami, gesf

ID code for entries

Postby Joel » Sun Mar 30, 2003 1:09 am

Is there anyway to have an automated id code for each entry?
Joel
New php-forum User
New php-forum User
 
Posts: 193
Joined: Sat Mar 29, 2003 11:57 pm
Location: Auckland, New Zealand

Postby Oleg Butuzov » Sun Mar 30, 2003 1:25 am

CREATE TABLE `sometable` (
`id` INT NOT NULL AUTO_INCREMENT,
`text` TEXT NOT NULL ,
PRIMARY KEY ( `id` )
);
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby Joel » Mon Mar 31, 2003 2:59 am

thanks a lot for that.
Joel
New php-forum User
New php-forum User
 
Posts: 193
Joined: Sat Mar 29, 2003 11:57 pm
Location: Auckland, New Zealand


Return to mySQL & php coding

Who is online

Users browsing this forum: Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.