Php Mysql - 获取值自动增量并将其插入另一列

I have a table like

CREATE TABLE IF NOT EXISTS `test` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(60) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 ;

I want insert some value to name column like

id|name
1 |1_myvalue
2 |2_myvalue
...

This table has multi users can insert to that. What can I do to make that thanks

$r = mysqli_query($conn, "INSERT INTO `test`(`name`) VALUES ('_myvalue')");

Simple workaround:
Save the record, get the inserted record's id, update it to the proper value

$r = mysqli_query($conn, "INSERT INTO `test`(`name`) VALUES ('myvalue')");
//1. save the record

$id=mysqli_insert_id($conn));
//2.  get it's id

mysqli_query($conn, "UPDATE `test` set `name` = $id"."'_myvalue' where id=$id limit 1");
//3. update the record appending correct id to the value as desired