20201112
This commit is contained in:
@@ -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 添加期刊订阅
|
||||
|
||||
Reference in New Issue
Block a user