增加数据欢迎!我白天是个邮递员,晚上就是个有抱负的演员。这是我的网站。我住在天朝的帝都,有条叫做Jack的狗。
<?phpinclude("linksql.php");$add="inset into new1(table,content) values('qwerty','qasedfdssddsd')";if($coon->query($add))echo "插入成功";elseecho "插入失败".$coon->error;conn->close();header("location:linksql.php");?>删除数据
<?phpinclude("linksql.php");$delet=("delete from new1 where id='1'");if($coon->query($delet))echo "删除成功";elseecho "删除失败".$coon->error;$coon->close();header("location:linksql.php");?>更改数据
<?phpinclude("linksql.php");$ta=$_POST[""];$co=$_POST[""];$upd=("update new1 set table'$ta',content'$co' where id='1'");if($coon->query($upd))echo "更新成功";elseecho "更新失败".$coon->error;$coon->close();header("location:linksql.php");
