- 博客(0)
- 资源 (9)
- 收藏
- 关注
Windows mobile开发实例指导
DataRow[] currRows = ds.Tables[0].Select(null, null, DataViewRowState.CurrentRows);
if( currRows.Length < 1)
return;
foreach(DataRow myRow in currRows)
{
Id = myRow["id"].ToString();
Name = myRow["name"].ToString();
Age = myRow["age"].ToString();
Address = myRow["address"].ToString();
sql = "INSERT INTO Human (id,Name,Age,Address) VALUES ("+Id+",'"+Name+"',"+Age+",'"+Address+"')";
// Execute Sql Command
command.CommandText = sql;
command.ExecuteNonQuery();
}
2010-11-13
PHP学生信息管理系统
if(!$tmp_file) //若未上传图片则不向ZP列插入内容
{
$insert_sql="insert into XSB(XH,XM,XB,CSSJ,ZY,ZXF,BZ)
values('$num','$name',$sex,'$birthday','$project',0,'$note')";
}
else
{
$insert_sql="insert into XSB(XH,XM,XB,CSSJ,ZY,ZXF,BZ,ZP)
values('$num','$name',$sex,'$birthday','$project',0,'$note','$picture')";
}
$insert_result=mysql_query($insert_sql);
if(mysql_affected_rows($conn)!=0)
echo "<script>alert('添加成功!');location.href='AddStu.php';</script>";
else
echo "<script>alert('添加失败,请检查输入信息!');location.href='AddStu.php';</script>";
}
2010-11-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人