1
0
Fork 0

Random changes.

master
Ambrose Chua 2016-10-31 02:03:23 +08:00
parent 715643f6b6
commit 1892ebafcb
3 changed files with 12 additions and 1 deletions

View File

@ -41,4 +41,4 @@ if ($sttype!=2) {
setcookie("adminlogin", json_encode($arr), time()+86400);
header("Location: index.php");
}
?>
?>

View File

@ -45,6 +45,7 @@ include 'checklogin.php';
$qry="SELECT * FROM `$mysql_table` ORDER BY `$mysql_table`.`id` DESC LIMIT 0, 30 ";
$result=mysqli_query($qry);
$iffirst=0;
$newlastid="null";
while ($row = mysqli_fetch_array($result)) {
$postlinked = stripslashes($row["txt"]);
echo '<span class="post postid'.$row["id"].'"><div class="t"><span class="loadingh"></span>'.$postlinked.'</div><div class="i">'.$row["tim"].'</div></span>';

10
initialize-tables.md Normal file
View File

@ -0,0 +1,10 @@
Log in to your MySQL server, then run the following:
```
CREATE TABLE microblog (
id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
txt VARCHAR(240) NOT NULL,
tim VARCHAR(20) NOT NULL
)
```