I've been creating some basic tables for my company and have come across this little problem.
When I submit this code with a normal name such as hello etc, it works fine but when I call the table "inner" or "Inner" it does not want to work.
$con = mysqli_connect($hostname, $username, $password, $db_name) or die(mysql_error());
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysqli_query($con,"CREATE TABLE inner (
inner_pck_dimension varchar (14),
inner_pck_weight Int (5),
inner_pck_barcode varchar (15),
inner_package_paper Int (5),
inner_package_plastic Int (5),
inner_package_other varchar (20)
)");
echo "Table Created";
Can anyone tell me why this is? My only assumption is that inner is a reserved word for joins.