I am currently trying to build a database manager with appealing GUI for specific functions. One of the functions is to create a TABLE from a list of variable, where each element is one of the variable. Like this:
<?php
include('conn.php');
var[0]='clients';
var[1]='id int(4) UNSIGNED AUTO_INCREMENT PRIMARY KEY';
var[2]='name VARCHAR(30) NOT NULL';
var[3]='surname VARCHAR(30) NOT NULL';
$create = "CREATE TABLE var[0] (
rest of vars
)";
...
?>
Really stuck here, guys.