Raj sahaniya 0 Newbie Poster

Because Sir, Primary key follows a rule is that it will not allowed to add primary key to multiple table, that's why its showing error of duplicate primary key on date column and for previous problem i checked your code then i found that there was problem with your database connection otherwise there was no problem i had created after accurate db connection code

Raj sahaniya 0 Newbie Poster

Reply: From Raj sahaniya, Dear Sir actually you have not defined the correct syntax for mysql_connect("localhost","user_id","password"), at first you correct this syntax you will able to create your table without any problem like as follows :-

$link = mysql_connect("localhost","root","vertrigo");