为什么无法插入表单数据到mysql中去?
我用test.html 指向login.php来插入帐号密码到mysql中去,但操作完后到mysql里看到只有id自动增加,其他的值都是空白的,是什么原因,是我代码写错还是我的数据库字段没配置好?
test.html中的代码如下
HTML code:
<meta content="text/html; charset=gb2312" http-equiv="Content-Type"/>
<form action="login.php" method="post" name="login">
<div class="line1">
帐号:<input type="text" name="userid" size="12" />
选择大区:
<select name="qu">
<option selected="selected" value="">请选择大区</option>
<option value="西北1区">西北1区</option>
<option value="西北2区">西北2区</option>
</select>
</div>
<div class="line2">
密码:<input type="password" name="pw" size="12" />
游戏等级:
<select name="dj">
<option selected="" value="">请选择等级</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</opt
相关问答:
假如数据库中有个test表,表中有id,Name,num,记录时间
id为自增长主键,name是名字,num表示其数量
1 nike 100 系统时间
2 nike 300 &n ......
我以前安装了一次,后来卸载了,现在再安装的时候,提示错误:Error 1305.Error reading from file C:DOCUME~1\LOCALS~1\Temp\mysql_server.msi.Verify that the file exists and that you can access it.
可是我找 ......
如题 数据是BLOB类型 怎么才能修改其中的某些值
BLOB中存入的是什么内容?
假设字段memo为blob类型,在该字段的值前面增加字符串'add--'
则操作语句如下:
SQL code:
update tb_blog set memo=concat( ......
有个winform程序,使用c#+mysql,需要在一个窗体设置mysql自动删除功能,包括自动删除多少天之前的数据以及是否开启自动删除功能,我程序退出后,还怎么控制Mysql自己删除啊?是不是要用mysql的event来实现?c#可以调用mysq ......
有一个表 mytable 有下面几个字段
id class(学生班级) studentSex(学生性别,1男2女) studentName(学生性名)
假设现有十几个班级,
我想获得班级中男学生最多的三条相应 ......