Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个表(它有两列id,这是一个自动增量列,和name),当我尝试使用插入查询添加一个新行时,一个空行添加了基本行。有人知道为什么会这样吗?
id
name
这是我的PHP代码:
$category_name = $_POST['category_name']; $result = mysql_query( "INSERT into agent_categories (agent_cat_type) values('$category_name')" );