Compare commits

..

No commits in common. "ef1ca1c48c4160d9dbd2b5ec8015578d8269656d" and "ba2640270535c87481df8b52ab99806d5296f5d9" have entirely different histories.

2 changed files with 1 additions and 3 deletions

@ -1,5 +1,4 @@
<?php
error_reporting(0);
//设置json格式头部
header('Content-type: application/json');
//载入数据库文件
@ -8,7 +7,7 @@ require("data.php");
if (isset($_GET['id'])) {
$id = $_GET['id'];
//查询指定id的记录
$sql = "SELECT * FROM soul WHERE id = $id+0";
$sql = "SELECT * FROM soul WHERE id = $id";
} else {
//查询随机一条记录
$sql = "SELECT * FROM soul ORDER BY RAND() LIMIT 1";

@ -1,5 +1,4 @@
<?php
error_reporting(0);
ob_start();
session_start();
require("data.php");