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