Random changes.
parent
715643f6b6
commit
1892ebafcb
|
@ -41,4 +41,4 @@ if ($sttype!=2) {
|
|||
setcookie("adminlogin", json_encode($arr), time()+86400);
|
||||
header("Location: index.php");
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
|
@ -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>';
|
||||
|
|
|
@ -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
|
||||
)
|
||||
```
|
Loading…
Reference in New Issue