php 输出html简单方法

<?php/*1.把html用单引号引起来用echo 输出, * echo '<form action="search.php" method="post" name="" id="">'; echo '<input name="search" type="text" id="search"/>'; echo '<input name="Submit" type="submit" value="搜索" />' ; echo "</form>"; */ //2,用点号拼接起来然后统一用echo 输出, //$data='<f...
默认分类 | 2018-03-30 18:15 | 185次阅读 | 0评

事物处理innnodb存处引擎

事物处理innnodb存处引擎 header("Content-type:application/json;charset=utf-8"); $db = new mysqli("localhost","root","root","test"); //连接数据库 $db->autocommit(false); //设置为非自动提交——事务处理 $sql1 = "update shoptest set companyid = companyid - 2 where id = 1"; //这里故意写错属性balance1 $sql2 = "update shoptest set com...
默认分类 | 2018-03-30 09:29 | 173次阅读 | 1评