Hello
I am trying to create a table in MySql using php. My code looks like this:
$sql = "CREATE TABLE qotwQuestion1111 ( QuestionId int PRIMARY KEY AUTOINCREMENT, Question varchar(5000), MemberId varchar(255) FOREIGN KEY REFERENCES qotwMember(MemberId), PostDate date, Vote int )"; mysql_query($sql,$con);
i am unable to create this table, the error is in the "AUTOINCREMENT" and also the "FOREIGN KEY" ..
Can someone tell me what am i doing wrong here. and what should i do to solve this problem please
Best Zeeshan