初步修改

This commit is contained in:
Yuan Chiu 2020-04-08 23:59:19 +08:00
parent f7284b32c7
commit 739cb7b9a1
3 changed files with 10 additions and 5 deletions

View File

@ -1,7 +1,12 @@
JGB Yuan 練習作業
===
# 安裝方法
待補充
## 1. 建立資料庫
$ mysql -u yuan -p
mysql> CREATE DATABASE `yuanjgb-mb`;
mysql> exit;
$ mysql -u yuan -p yuanjgb-mb < install.sql
$ cp htdocs/config.sample.php htdocs/config.php
# 啟動伺服器
···

View File

@ -34,7 +34,7 @@
*
* 每一張表格名稱的起始字串,為了避開一些網頁空間只允許建立一個資料庫的限制。
*/
define('DB_PREFIX', 'mg__');
define('DB_PREFIX', '');
// 網站設定 ===================================================================
/**

View File

@ -55,9 +55,9 @@ $list = [
foreach ($list as $key => $item) {
echo '
<tr>
<th>id</th>
<td>title</td>
<td>updated_at</td>
<th>'.$item['id'].'</th>
<td>'.$item['title'].'</td>
<td>'.$item['updated_at'].'</td>
<td>
<ul>
<li><a href="" class="btn">Edit</a></li>