Hello I seem to be getting an error with this ive tried a few things and am getting annoyed.
$conn = mysql_connect(“localhost”, “root”, “”);
$sql = ‘CREATE TABLE default
(
X_coord INT,
Y_coord INT,
Piece varchar(30)
)’;
// Execute query
if (mysql_query($sql, $conn)){
echo “Table created successfully”;
} else {
echo 'Error creating table: ’ . mysql_error($conn);
}
}
Thanks for the help!