I dont know if this a PHP or MYSQL question but im pretty sure its the combination of two.
My problem is how to insert my multiple variable to mysql table in one colum.
example var
$name1
$name2
$name3
employee: column names
id name date
PHP query
my problem is how to execute the query one time to insert the above 3 variables to the table?
My problem is how to insert my multiple variable to mysql table in one colum.
example var
$name1
$name2
$name3
employee: column names
id name date
PHP query
Code:
$query = "insert into employee (id, name, date) values ('{$id}','{$name1}',now())";
Comment