在php中,在数据库的同一行中插入具有相同名称的表单输入值
我在这里尝试了几次将输入输入到数据库中。如您所见,条目是可变的。 代码是这样的在php中,在数据库的同一行中插入具有相同名称的表单输入值,php,mysql,Php,Mysql,我在这里尝试了几次将输入输入到数据库中。如您所见,条目是可变的。 代码是这样的 // Add New Game if (isset($_POST['add_new_game'])) { $GAME_selected_game_type = $_POST['selected_game_type']; $GAME_game_title = $_POST['game_title']; $GAME_game_q
// Add New Game
if (isset($_POST['add_new_game'])) {
$GAME_selected_game_type = $_POST['selected_game_type'];
$GAME_game_title = $_POST['game_title'];
$GAME_game_quantity = $_POST['game_quantity'];
$GAME_game_price = $_POST['game_price'];
$Date = date('Y-m-d');
$wallets = Query_db_table("SELECT * FROM wallets");
foreach($wallets as $wallet){}
$DATA = array(
'type' => $GAME_NAME,
'name' => $Date,
'price' => $GAME_game_price,
'status' => 1
);
//Insert Information to database
dbRowInsert("games",$DATA);
header("Location: $_SERVER[PHP_SELF]");
}else{
}