This commit is contained in:
wangjinlei
2021-08-30 11:43:22 +08:00
parent 68de3a8fd6
commit 375b62ab9d
7 changed files with 453 additions and 17 deletions

View File

@@ -744,6 +744,35 @@ class Journal extends Controller {
$re['topics'] = $list;
return jsonSuccess($re);
}
public function tttt(){
$host="localhost";//mysql服务器地址
$user='root';
$pass='root';
$dbName='journal';//数据可名称
$charSet='utf8';
$port='3306';
$conn=mysql_connect($host,$user,$padd);
if(!$conn){
echo 'unable to connect to DB '.mysql_error();
exit();
}
query('use '.$db);
$sql = "select * from j_user limit 1";//这里是sql语句
$res = getAll($sql);
echo '<pre>';
var_dump($res);
echo '</pre>';
}
/**
* @title 添加期刊订阅