What is the point, in the assembly of denver, everything is running smoothly, but LAMPP (on Ubuntu 16.04 LTE) does not process the second request, php has set 5.6.
$result2 = mysql_query ("INSERT INTO users (login,password)
VALUES('$login','$password')");
$result2 = mysql_query ("INSERT INTO tasters SET id=LAST_INSERT_ID()");
In the users table there is an id field with A_I, and the same field in tasters, but without A_I, both designated as INDEX. Tables are created in advance in this way:
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`login` varchar(18) NOT NULL,
`password` varchar(18) NOT NULL,
`status` int(11) NOT NULL DEFAULT '3',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
And:
CREATE TABLE IF NOT EXISTS `tasters` (
`id` int(11) NOT NULL,
`name` varchar(32) NOT NULL,
`surname` varchar(32) NOT NULL,
`patronymic` varchar(32) NOT NULL,
`sex` int(11) NOT NULL,
`birth` date NOT NULL,
`salary` int(11) NOT NULL,
`marital_status` int(11) NOT NULL,
`children` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
"INSERT INTO tasters SET id=LAST_INSERT_ID()"
have correct syntax for INSERT command? Did you try to run it by hand?