Du kan bruge mysql_insert_id()
funktion i PHP for at få sidst indsatte ID
mysql_query("INSERT INTO mytable (product) values ('kossu')");
printf("Last inserted record has id %d\n", mysql_insert_id());
Du kan bruge mysql_insert_id()
funktion i PHP for at få sidst indsatte ID
mysql_query("INSERT INTO mytable (product) values ('kossu')");
printf("Last inserted record has id %d\n", mysql_insert_id());