现在xml更新了啊。
这里的一步【9:40】
我们没有显示data 而是直接报错
Notice: Array to string conversion in C:\phpcode\WWW\php_APP\3-php-XML\3.php on line 129
array(3) { ["code"]=> int(200) ["message"]=> string(6) "sucess" ["data"]=> array(2) { ["id"]=> int(1) ["name"]=> string(4) "test" } }
这里的一步【9:40】
我们没有显示data 而是直接报错
Notice: Array to string conversion in C:\phpcode\WWW\php_APP\3-php-XML\3.php on line 129
array(3) { ["code"]=> int(200) ["message"]=> string(6) "sucess" ["data"]=> array(2) { ["id"]=> int(1) ["name"]=> string(4) "test" } }
2016-12-15
最新回答 / 慕移动9181930
指向事件对象mjlzqurdrxoytzeelevwxhqampojjoksxwgbjclaziahqiurfxfiykxjrvfduoogdcafbkvpz
2016-12-14
$sth = $pdo->prepare($sql);
$sth->execute(array(':calories' => 150, ':color' => 'red'));
$result = $sth->fetch();
$sth->execute(array(':calories' => 150, ':color' => 'red'));
$result = $sth->fetch();
2016-12-14
$pdo = new PDO('mysql:host=localhost;dbname=thinkphptest;port=3306','root','');
$pdo->exec('set names utf8');
$sql = 'SELECT * FROM fruit WHERE calories < :calories AND color = :color';
$result = $pdo->query($sql);
print_r($result);
$pdo->exec('set names utf8');
$sql = 'SELECT * FROM fruit WHERE calories < :calories AND color = :color';
$result = $pdo->query($sql);
print_r($result);
2016-12-14
Response::show(200,'success',$arr,$_GET['format']);
2016-12-10