I have a link which will use to create sql table in database . I want to use date + string as table name . When I am just using string that is creating table in my database . But when I am using variable as table name with date function , its not working and not creating any table .
<?php require("connection.php");
$ins = new Db();
$ins->dbconnect();
$tablename = date('d-m-y')."customername";
$table= "CREATE TABLE $tablename(id int) ";
<a href="<?php $ins->dbconnection->query($table)?>">Create table</a>
When I am just using string in $tablename and its create table . But when using date() function in $tablename , its not creating table anymore .