Skip to content
This repository has been archived by the owner on May 28, 2020. It is now read-only.

Commit

Permalink
写SQL命令模板
Browse files Browse the repository at this point in the history
  • Loading branch information
kagurazakayashi committed Aug 30, 2015
1 parent f452a92 commit 4d1e044
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
4 changes: 2 additions & 2 deletions emostore_admin_alldata.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
$nowvalue = $arri[$nowkey];
echo "<input type=\"text\" name=\"backurl\" value=\"".$nowvalue."\" size=".strlen($nowvalue)." />";
}
echo "</br><input type=\"submit\" name=\"Submit\" value=\"修改数据\" /></form><a href=\"emostore_admin_delete_do.php?id=".$arri["id"]."\">删除数据</a>";
echo "<hr>";
echo "</br><input type=\"submit\" name=\"Submit\" value=\"修改数据\" /></form>";
echo "<a href=\"emostore_admin_delete_do.php?id=".$arri["id"]."\">删除数据</a><hr>";
}
// }
?>
Expand Down
4 changes: 2 additions & 2 deletions emostore_admin_logout.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
unset($_SESSION['userflag']);
echo "<p>已注销。</p>";
if (isset($_GET['backurl'])) {
echo "<a href=\"".$_GET['backurl']."\">返回登录前页面</a>";
echo "<a href=\"".$_GET['backurl']."\">返回注销前页面</a>";
} else if (isset($_POST['backurl'])) {
echo "<a href=\"".$_POST['backurl']."\">返回登录前页面</a>";
echo "<a href=\"".$_POST['backurl']."\">返回注销前页面</a>";
} else {
echo "<a href='emostore_admin_login_ui.php'>重新登录</a>";
}
Expand Down
14 changes: 14 additions & 0 deletions sqlnote.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-- 增:
insert `emostore`(`name`,`iconurl`,`postedon`,`introduction`,`creator`,`creatorurl`,`server`,`serverurl`,`dataformat`,`installurl`,`codeurl`) values('nametest','iconurltest','2014-07-30','posttest','createst','xreaurltest','servertest','serurltest','dformatest','insturltest','codetest');
-- 删:
delete from `emostore` where `id`=3;
-- 改(部分):
update `emostore` set `name`='nametest0' where `id`=3;
-- 改(全部):
update `emostore` set `name`='nametest0',`iconurl`='iconurltest0',`postedon`='2014-07-29',`introduction`='posttest0',`creator`='createst0',`creatorurl`='xreaurltest0',`server`='servertest0',`serverurl`='serurltest0',`dataformat`='dformatest0',`installurl`='insturltest0',`codeurl`='codetest0' where `id`=3;
-- 查(部分):
select * from `emoticonstore`.`emostore` limit 0,2;
-- 查(全部):
select * from `emoticonstore`.`emostore`;
-- 数据量:
select count(*) from `emoticonstore`.`emostore`;

0 comments on commit 4d1e044

Please sign in to comment.