got a little problem again. my table is as follows:
---------------------------------------
id | bnummer | model | width ....
---------------------------------------
id is autoincrement, bnummer is the ordernumber (i'm creating a shopping cart) now the problem is: when a customer visits my shop and he adds his first product to his cart, i used:
Code: Select all
$bestelnr = mysql_query("select bnummer from bestdetl order by id desc limit 1",$conn) + 1;when my table is completely empty, the first record i adds gets bnummer 11, the second one i add gets bnummer 0
this just won't work, can somebody help me?
grtz
RuffRyder