Hi, thanks, thorpe. i already get pointer to the problem, but i am not sure about the meaning of the message.
The browser shows "Out of range value adjusted for column 'id' at row 1".
About echoing $sql, do you mean adding the script like below?
else {
echo mysql_error();
echo $sql;
}
The browser will show "Out of range value adjusted for column 'id' at row 1INSERT INTO testtable values ('', 'testing')"
i am thinking if there is any problem with the script that i created the table? but i can describe the testTable.
i create a table using the script below:
<?php
$conn = mysql_connect("localhost", "username","password");
mysql_select_db("testDB",$conn);
$sql="create table testTable (id int not null primary key auto_increment,testField varchar (75))";
$result=mysql_query($sql,$conn);
echo $result;
?>
So, anyone know the reason? Thanks. 🙂