Please help. The following code simply does not work. I get no error messages either. I check my database in PHPMyAdmin and I do not see the newly created column. I have user_info(database) > team-names(table) > the column I'm trying to make...
Here's my index.php
<?php
include('connect-mysql.php');
$table = 'team-names';
$column = 'team6';
$add = mysqli_query($conn, "ALTER TABLE $table ADD $column VARCHAR(16) NOT NULL;");
?>
Here's my included connect-mysql.php
[code]
<?php
$servername = "localhost";
$username = "root";
$password = "password";
$dbname = "player-info";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
?>
[/code]
Thanks.