MySQL/R33
#2

The primary key mustn't have any meaning. It is merely there to identify the row in the table. In the house structure (probably the enum) you must create a variable that will hold this id. If you want to create a new house you do a normal insert. Then you use cache_insert_id() to assign the newly created id to said variable.
Reply


Messages In This Thread
MySQL/R33 - by Juvanii - 02.07.2016, 14:57
Re: MySQL/R33 - by Vince - 02.07.2016, 15:00
Re: MySQL/R33 - by Juvanii - 02.07.2016, 15:24
Re: MySQL/R33 - by SecretBoss - 02.07.2016, 15:27
Re: MySQL/R33 - by Konstantinos - 02.07.2016, 15:50
Re: MySQL/R33 - by Juvanii - 02.07.2016, 16:32
Re: MySQL/R33 - by [cS]Owain - 02.07.2016, 16:41

Forum Jump:


Users browsing this thread: 1 Guest(s)