PHP Variable in Select Statement

前端 未结 7 528
滥情空心
滥情空心 2021-01-13 17:50

I\'ve written this PHP-Script which is working, and now I want to change the row name into a variable to (not sure if row is correct), I mean the \"name\" from the selec

7条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-13 18:06

    This is much easier isn't it?

    $sql_insert = 
    "INSERT INTO customers (        
    `name`,
    `address`,
    `email`,
    `phone`
    ) 
    VALUES (        
    '$name',
    '$address',     
    '$email',
    '$phone'
    )";
    

提交回复
热议问题