echo "</br></br></br>" . $sql;
mysql_query($sql) or die("Entry not added to database.");
吐出:
INSERT INTO potentials (id, firstname, lastname, age, email, phone, twitter, timeofday, dayofweek, address, city, state, zip, joindate, parentname, parentnumber) VALUES (null, 'Rick', 'Bross', '14', 'rbross3@gmail.com', '8164896991', '@rick_bross', 'After 5:30PM', 'Weekdays', '1234 Cooper', 'Raymore', 'MO', '64130', '2013-04-09 20:10:06', 'Rick Bross II', '1234123412')Entry not added to database.
为什么没有正确插入?我可以检查其中一个字符串是否不适合我的数据库列(类型类型 char 错误或其他内容)吗?