Reputation: 31
The table is not created in the database Users
and there is no error message at all. PhpMyAdmin is set to allow no password, just to be clear on that point.
CREATE TABLE Users(
ID string(255) NOT NULL,
FirstName string(255) NOT NULL,
Surname string(255) NOT NULL,
DOB date(10) NOT NULL
)
Upvotes: 0
Views: 673
Reputation: 633
your query should be like this.
$mySql = CREATE TABLE Users(
ID VARCHAR(255) NOT NULL,
FirstName VARCHAR(255) NOT NULL,
Surname VARCHAR(255) NOT NULL,
DOB date NOT NULL
)";
Upvotes: 3