i need to make application installation and need to make this tables in installation like wordpress. i have not error in php but this codes doesnt make any tables...
$conn = new mysqli('localhost', 'root', '', 'billboard');
if (mysqli_connect_errno()) {
exit('Connection lost');
};
for($i=1;$i<=21;$i++){
$table= "city".$i ;
echo ($table . "<br>");
$sql='CREATE TABLE $table
( id INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(id),
test0 VARCHAR(30),
test1 VARCHAR(30),
test2 VARCHAR(30))';
if ($conn->query($sql) === TRUE) {
echo 'tables created';
}
else {
echo 'Cant create tables';
};
};