I'm trying to create table in mysql.
There is $column_str which stores the names of the column.
If we have 3 columns it will be $columns_str="123", 4 columns -> $columns_str="1234"
So, I need to create table using variable $columns_str.
This code creates table1 with 1 column: "123":
$columns_str="123"; $table_name = table1;
$connection->query("CREATE TABLE `kcup`.`$table_name` ( `$columns_str` TEXT NOT NULL ) ENGINE = InnoDB;")
I need table with 3 columns: "1","2","3".
Help pls and thank you!