This should be a really simple process, but for some reason I cannot add a column to the MySQL table. Here is my syntax:
$query = "ALTER TABLE game_licenses ADD lifetime VARCHAR(255) AFTER expire_date"; $result = mysql_query($query); if (!$result) { echo "it failed"; } else { echo "success"; }
I tried a few small changes, such as adding COLUMN to the query after ADD. There are no MySQL errors, but the script ends and echos "it failed".
Error:
ALTER command denied to user 'webuser' @ 'localhost'
Is it possible to block a table from changing?
source share