Guys, i have a big problem. i need to create separate table for each user i my database by sending user name via C2 project (meaning ajax POST), please, no question what for, just need this.
So, can enyone explain me whre i have mistake?
And here is the code:
<?php
$host = "xxx.mysql.com";
$login = "u33678";
$pass = "123456";
$dbname = "u33678";
$user = $_POST['user'];
Header('Access-Control-Allow-Origin: *');
Header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
Header("Content-Type: text/html; charset=UTF-8");
$link = mysql_connect ($host, $login, $pass);
mysql_select_db ($dbname , $link) or die("FUUUCK");
mysql_query ("CREATE TABLE .$user. (id int not null auto_increment,pole1 varchar(10) not null,PRIMARY KEY(id))");
?>