I need to make a column that has an auto incrementing integer. (it can't be the following...)...
$query = "CREATE TABLE $username (messages TEXT, id INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(id))";
Let me give you a discription of what I'm trying to do...
This code is for the create an account page on my the website I'm making. The site a messaging system (network). The $username
variable in the query is to make a table for that user (it is named after the users username). The column for the messages TEXT
is for the persons messages. The column id is so when the user tries to delete a message it will be able to delete the message with corresponding id. This means that the id
column for each message must be different for each message.
I hope you understand,
Thank you in advance