php

// $sql="insert into `login`(`name`,`password`)value('admin',' $password') ";增加
$sql="delete from `login` where `id`='1' "; 删除


// $sql="update `login` set `name` = 'username' where id='8' ";修改

// 查询
$sql="select * from `login` where ID='8' ";

$set = mysql_query($sql);

$result=mysql_fetch_array($set);

print_r($result);

header("Content-type: text/html; charset=utf-8");

 

posted @ 2017-01-14 01:27  沐少白  阅读(79)  评论(0)    收藏  举报