This commit is contained in:
wangjinlei
2022-04-20 14:50:49 +08:00
parent 2b2348f65e
commit 3f655ce54c
2 changed files with 15 additions and 29 deletions

View File

@@ -1082,31 +1082,6 @@ class Journal extends Controller {
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 添加期刊订阅