hey people
seriously , this code is going to kill me
i wrote it yesterday and upto now it cant work
i wrote it more than one time and i review it more than 10 times but i didnt found the error
so this is my code and bellow is the error
<?php
include '../../includes.php/connect.php';
$sql = "CREATE TABLE news(
id INT(8) NOT NULL AUTO_INCREMENT,
title VARCHAR(250) NOT NULL,
news TEXT NOT NULL
)";
$query = mysql_query($sql);
if(!$query)
{
echo "cant create the news table ".mysql_error();
}
else
{
echo "done";
}
?>
cant create the news table Incorrect table definition; there can be only one auto column and it must be defined as a key